src/xPDO/Om/xPDOCriteria.php
public function equals($obj) {
        return (is_object($obj) && $obj instanceof xPDOCriteria && $this->sql === $obj->sql && !array_diff_assoc($this->bindings, $obj->bindings));
    }
public function equals($obj) {
        return (is_object($obj) && $obj instanceof xPDOCriteria && $this->sql === $obj->sql && !array_diff_assoc($this->bindings, $obj->bindings));
    }
public function equals ( $ obj ) { return ( is_object ( $ obj ) && $ obj instanceof xPDOCriteria && $ this -> sql === $ obj -> sql && ! array_diff_assoc ( $ this -> bindings , $ obj -> bindings ) ) ; }
Compares to see if two xPDOCriteria instances are the same.

@param object $obj A xPDOCriteria object to compare to this one.
@return boolean true if they are both equal is SQL and bindings, otherwise
false.
Compares to see if two xPDOCriteria instances are the same .