src/orm/classes/Table.php
public function delete(ORM_Entity $entity)
    {
        $pKey = $this->getPrimaryKey();
        $columns = $this->getColumns();
        $q = Eresus_DB::getHandler()->createDeleteQuery();
        $q->deleteFrom($this->getName())->
            where($q->expr->eq($pKey,
                $q->bindValue($entity->getPrimaryKey(), null, $columns[$pKey]->getPdoType())
            ));
        $entity->beforeDelete($q);
        $q->execute();
        $entity->afterDelete();
    }
public function delete(ORM_Entity $entity)
    {
        $pKey = $this->getPrimaryKey();
        $columns = $this->getColumns();
        $q = Eresus_DB::getHandler()->createDeleteQuery();
        $q->deleteFrom($this->getName())->
            where($q->expr->eq($pKey,
                $q->bindValue($entity->getPrimaryKey(), null, $columns[$pKey]->getPdoType())
            ));
        $entity->beforeDelete($q);
        $q->execute();
        $entity->afterDelete();
    }
Удаляет сущность из таблицы

@param ORM_Entity $entity

@return void

@since 1.00