예제 #1
0
파일: Tags.php 프로젝트: SPA33FR/spa33
 /**
  * Get All Tags FROM Database
  * 
  * @param DoctrineManager $em
  * @return {Collection} 
  */
 public function getAllTags($em)
 {
     return $em->getRepository("\\Spa\\SpaBundle\\Entity\\Tags")->findAll();
 }
예제 #2
0
파일: Articles.php 프로젝트: SPA33FR/spa33
 /**
  * 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);
 }