Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $disabilityType = $this->getDoctrine()->getRepository("AldenBonBundle:DisabilityType")->findAll();
- $item = new AldenBonBundleEntityDisabilityType();
- $item->setAsAll();//set name and id
- array_unshift($disabilityType, $item);
- $disabilityType = $this->getDoctrine()->getEntityManager()->merge($item);
- $query = $entityManager
- ->createQuery('SELECT d FROM AldenBonBundleDisabilityType d');
- $disabilityTypes = $query->getResult(Query::HYDRATE_ARRAY);
Add Comment
Please, Sign In to add comment