|
@@ -59,9 +59,7 @@ class ElementRepository extends EntityRepository
|
59
|
59
|
$query_with .= "t.id = :tagid".$tag_id." ";
|
60
|
60
|
$params['tagid'.$tag_id] = $tag_id;
|
61
|
61
|
}
|
62
|
|
-
|
63
|
|
- $query_join2 = ' JOIN e.owner';
|
64
|
|
-
|
|
62
|
+
|
65
|
63
|
$query_string = "SELECT e, et, t, eu, g
|
66
|
64
|
FROM MuzichCoreBundle:Element e
|
67
|
65
|
LEFT JOIN e.group g JOIN e.type et JOIN e.tags t $query_with
|
|
@@ -69,13 +67,6 @@ class ElementRepository extends EntityRepository
|
69
|
67
|
ORDER BY e.date_added DESC "
|
70
|
68
|
;
|
71
|
69
|
|
72
|
|
-// $query_string = "
|
73
|
|
-// SELECT e, g
|
74
|
|
-// FROM MuzichCoreBundle:Element e
|
75
|
|
-// LEFT JOIN e.group g
|
76
|
|
-// ORDER BY e.date_added DESC
|
77
|
|
-// ";
|
78
|
|
-
|
79
|
70
|
$query = $this->getEntityManager()
|
80
|
71
|
->createQuery($query_string)
|
81
|
72
|
->setParameters($params)
|