@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Get id |
80 | 80 | * |
81 | - * @return UUID |
|
81 | + * @return integer |
|
82 | 82 | */ |
83 | 83 | public function getId() |
84 | 84 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * Get beers |
159 | 159 | * |
160 | - * @return \Doctrine\Common\Collections\Collection |
|
160 | + * @return Beer |
|
161 | 161 | */ |
162 | 162 | public function getBeers() |
163 | 163 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $breweries = $em ->getRepository('MaxpouBeerBundle:Brewery') |
44 | 44 | ->findBy([], ['name' => 'ASC'], $limit, $offset); |
45 | 45 | |
46 | - $context = SerializationContext::create()->setGroups(array('Default','list')); |
|
46 | + $context = SerializationContext::create()->setGroups(array('Default', 'list')); |
|
47 | 47 | $view = $this->view($breweries, 200); |
48 | 48 | $view->setSerializationContext($context); |
49 | 49 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | throw new HttpException(404, 'Unable to find this Brewery entity'); |
74 | 74 | } |
75 | 75 | |
76 | - $context = SerializationContext::create()->setGroups(array('Default','details')); |
|
76 | + $context = SerializationContext::create()->setGroups(array('Default', 'details')); |
|
77 | 77 | $view = $this->view($brewery, 200); |
78 | 78 | $view->setSerializationContext($context); |
79 | 79 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $em->flush(); |
109 | 109 | |
110 | 110 | $view = $this->view($brewery, 201); |
111 | - $context = SerializationContext::create()->setGroups(array('Default','details')); |
|
111 | + $context = SerializationContext::create()->setGroups(array('Default', 'details')); |
|
112 | 112 | $view->setSerializationContext($context); |
113 | 113 | } else { |
114 | 114 | $view = $this->view($form, 400); |