src/eXpansion/Bundle/LocalRecords/Model/Base/Record.php 1 location
|
@@ 253-268 (lines=16) @@
|
| 250 |
|
* @param mixed $obj The object to compare to. |
| 251 |
|
* @return boolean Whether equal to the object specified. |
| 252 |
|
*/ |
| 253 |
|
public function equals($obj) |
| 254 |
|
{ |
| 255 |
|
if (!$obj instanceof static) { |
| 256 |
|
return false; |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if ($this === $obj) { |
| 260 |
|
return true; |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) { |
| 264 |
|
return false; |
| 265 |
|
} |
| 266 |
|
|
| 267 |
|
return $this->getPrimaryKey() === $obj->getPrimaryKey(); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
/** |
| 271 |
|
* Get the associative array of the virtual columns in this object |
src/eXpansion/Framework/PlayersBundle/Model/Base/Player.php 1 location
|
@@ 249-264 (lines=16) @@
|
| 246 |
|
* @param mixed $obj The object to compare to. |
| 247 |
|
* @return boolean Whether equal to the object specified. |
| 248 |
|
*/ |
| 249 |
|
public function equals($obj) |
| 250 |
|
{ |
| 251 |
|
if (!$obj instanceof static) { |
| 252 |
|
return false; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
if ($this === $obj) { |
| 256 |
|
return true; |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if (null === $this->getPrimaryKey() || null === $obj->getPrimaryKey()) { |
| 260 |
|
return false; |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
return $this->getPrimaryKey() === $obj->getPrimaryKey(); |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
/** |
| 267 |
|
* Get the associative array of the virtual columns in this object |