Ejemplo n.º 1
0
 private function update(IdentifiableOrmEntity $entity)
 {
     $affected = $this->executeQuery(UpdateQuery::create($this->physicalSchema->getTable())->setValues($this->map->disassemble($entity))->setCondition(EntityQuery::create($this->entity)->where(Expression::eq($this->identifier, $entity->_getId()))->toExpression()));
     $entity->setFetched();
     return $affected > 0;
 }