yii\db\ActiveRecordInterface::equals PHP Method

equals() public method

Two [[getIsNewRecord()|new]] records are considered to be not equal.
public equals ( static $record ) : boolean
$record static record to compare to
return boolean whether the two active records refer to the same row in the same database table.
    public function equals($record);