/** * @param string $path * @throws PathNotFoundException * @return EntityInterface */ public function get($path) { if ($e = EntryPeer::retrieveByPath($this->entityType, $path)) { $peer = constant($this->entityType . '::PEER'); return $peer::retrieveByPk($e->getEntityId()); } else { throw new PathNotFoundException("Path not found: {$path}"); } }
protected function setUp() { parent::setUp(); EntryPeer::doDeleteAll(); }