/** * Get All Tags FROM Database * * @param DoctrineManager $em * @return {Collection} */ public function getAllTags($em) { return $em->getRepository("\\Spa\\SpaBundle\\Entity\\Tags")->findAll(); }
/** * Get One Article FROM Database By Id * * @param DoctrineManager $em * @param int $id * * @return Article */ public function getOneById($em, $id) { return $em->getRepository("\\Spa\\SpaBundle\\Entity\\Articles")->find($id); }