public function equals($o) {
		return (get_class($this) == get_class($o) && $this->id() == $o->id());
	}
public function equals($o) {
		return (get_class($this) == get_class($o) && $this->id() == $o->id());
	}
public function equals ( $ o ) { return ( get_class ( $ this ) == get_class ( $ o ) && $ this -> id ( ) == $ o -> id ( ) ) ; }
Verify equality with another object

@param object $o The object to compare.
@return boolean True if this object represents the same data, else False.

Compare the class and the ID field value of the 2 objects.
Verify equality with another object