public function find($id) { $id = (array) $id; $em = $this->getEntityManager(); $storage = $em->getStorage($this->getReflectionClassName()); return isset($storage) ? $storage->find($id) : null; }
/** * Finds one element in entity manager by id * * @param string $id An owner ID * @return OwnerData Returns OwnerData or NULL if nothing found. */ public function find($id) { return parent::find($id); }