public function same(Mongodloid_Entity $obj) { return $this->getId() && (string) $this->getId() == (string) $obj->getId(); }