src/orm/classes/Field/Bindings.php
public function afterEntityDelete(ORM_Entity $entity)
    {
        $table = $this->getBindingsTable();
        $q = Eresus_DB::getHandler()->createDeleteQuery();
        $q->deleteFrom($table->getName());
        $q->where($q->expr->eq($table->getSourceField(), $q->bindValue($entity->getPrimaryKey())));
        $q->execute();
    }
public function afterEntityDelete(ORM_Entity $entity)
    {
        $table = $this->getBindingsTable();
        $q = Eresus_DB::getHandler()->createDeleteQuery();
        $q->deleteFrom($table->getName());
        $q->where($q->expr->eq($table->getSourceField(), $q->bindValue($entity->getPrimaryKey())));
        $q->execute();
    }
Действия, выполняемые после удаления сущности

@param ORM_Entity $entity