src/orm/classes/Table.php
public function persist(ORM_Entity $entity)
    {
        $q = Eresus_DB::getHandler()->createInsertQuery();
        $q->insertInto($this->getName());
        $this->bindValuesToQuery($entity, $q);
        $newQuery = $entity->beforeSave($q);
        if ($newQuery instanceof ezcQuery)
        {
            $q = $newQuery;
        }
        $q->execute();
        $entity->afterSave();
    }
public function persist(ORM_Entity $entity)
    {
        $q = Eresus_DB::getHandler()->createInsertQuery();
        $q->insertInto($this->getName());
        $this->bindValuesToQuery($entity, $q);
        $newQuery = $entity->beforeSave($q);
        if ($newQuery instanceof ezcQuery)
        {
            $q = $newQuery;
        }
        $q->execute();
        $entity->afterSave();
    }
Помещает сущность в таблицу

@param ORM_Entity $entity

@return void

@since 1.00