Exemple #1
0
 /**
  * Get All Tags FROM Database
  * 
  * @param DoctrineManager $em
  * @return {Collection} 
  */
 public function getAllTags($em)
 {
     return $em->getRepository("\\Spa\\SpaBundle\\Entity\\Tags")->findAll();
 }
Exemple #2
0
 /**
  * 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);
 }