public function __construct(pdoMap_Mapping_Entity $entity) { parent::__construct('Unable to validate entity ' . $entity->getType() . ' with id ' . $entity->getPk()); }
/** * 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($transaction, pdoMap_Mapping_Entity $entity) { parent::__construct('Unable to execute ' . $transaction . ' transaction on entity ' . $entity->getType() . ' with id ' . $entity->getPk()); }