src/Database/ORM/Traits/Mapping.php
/**
	 * Checks if this object equals another.
	 *
	 * @param Model $object
	 * @return bool
	 */
Checks if this object equals another.
@param Model $object
@return bool
Checks if this object equals another . @param Model $object @return bool
public function equals(Model $object) {
		if ($this === $object) {
			return true;
		}
		$localTable = $this->getTable();
		$localKey = serialize($this->getPrimaryKey());
		$localValue = serialize($this->getPrimaryKeyValue());
		$remoteTable = $object->getTable();
		$remoteKey = serialize($object->getPrimaryKey());
		$remoteValue = serialize($object->getPrimaryKeyValue());
		return $localTable === $remoteTable &&
			$localKey === $remoteKey &&
			$localValue === $remoteValue;
	}
public function equals ( Model $ object ) { if ( $ this === $ object ) { return true ; } $ localTable = $ this -> getTable ( ) ; $ localKey = serialize ( $ this -> getPrimaryKey ( ) ) ; $ localValue = serialize ( $ this -> getPrimaryKeyValue ( ) ) ; $ remoteTable = $ object -> getTable ( ) ; $ remoteKey = serialize ( $ object -> getPrimaryKey ( ) ) ; $ remoteValue = serialize ( $ object -> getPrimaryKeyValue ( ) ) ; return $ localTable === $ remoteTable && $ localKey === $ remoteKey && $ localValue === $ remoteValue ; }
Checks if this object equals another.
Checks if this object equals another .