/** * Checks if two models are equal. * Two models are equal if and only if the two RDF graphs they represent are isomorphic. * * Warning: This method doesn't work correct with models where the same blank node has different * identifiers in the two models. We will correct this in a future version. * * @access public * @param object model &$that * @throws phpErrpr * @return boolean */ function equals(&$that) { if (is_a($that, 'ResModel')) { return $this->model->equals($that->getModel()); } return $this->model->equals($that); }