@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $form = $this->createForm($typePath, $entityNew, array( |
142 | 142 | 'action' => $this->generateUrl(strtolower($entity).'_create'), |
143 | 143 | )); |
144 | - $return = [$entity => $entityNew, 'form' => $form->createView(),]; |
|
144 | + $return = [$entity => $entityNew, 'form' => $form->createView(), ]; |
|
145 | 145 | |
146 | 146 | if ($form->handleRequest($request)->isValid()) { |
147 | 147 | $etm = $this->getDoctrine()->getManager(); |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | { |
268 | 268 | $session = new Session(); |
269 | 269 | |
270 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
270 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | } else { |
292 | 292 | $alias = current($qbd->getDQLPart('from'))->getAlias(); |
293 | 293 | } |
294 | - $qbd->orderBy($alias . '.' . $order['field'], $order['type']); |
|
294 | + $qbd->orderBy($alias.'.'.$order['field'], $order['type']); |
|
295 | 295 | } |
296 | 296 | } |
297 | 297 |