/** * Remove an entity from cache */ public function removeEntity(pdoMap_Mapping_Entity $entity) { if ($this->hasEntity($entity->getType(), $entity->getPk())) { unset($this->entities[$entity->getType()][$entity->getPk()]); } else { throw new Exception('Entity not found ' . $type . ' - ' . $id); } }
public function __construct(pdoMap_Mapping_Entity $entity) { parent::__construct('Unable to validate entity ' . $entity->getType() . ' with id ' . $entity->getPk()); }
public function __construct($transaction, pdoMap_Mapping_Entity $entity) { parent::__construct('Unable to execute ' . $transaction . ' transaction on entity ' . $entity->getType() . ' with id ' . $entity->getPk()); }
public function __construct(pdoMap_Mapping_Entity $entity, pdoMap_Mapping_Metadata_Field $meta) { parent::__construct('Could not validate entity ' . $entity->getType() . ' because field ' . $meta->bind . ' cant be null !'); }
public function __construct(pdoMap_Mapping_Entity $entity, pdoMap_Mapping_Metadata_Field $meta) { parent::__construct('Could not validate entity ' . $entity->getType() . ' because value of field ' . $meta->bind . ' is not correctly typed (expecting ' . $meta->type . ') ! Field value : ' . $entity->getValue($meta->bind)); }