File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -147,16 +147,15 @@ to your class::
147
147
use Symfony\Component\Serializer\Annotation\Groups;
148
148
149
149
/**
150
- * @ORM\Entity()
151
- */
150
+ * @ORM\Entity()
151
+ */
152
152
class Product
153
153
{
154
-
155
- /**
154
+ /**
156
155
* @ORM\Id
157
156
* @ORM\GeneratedValue
158
157
* @ORM\Column(type="integer")
159
- * @Groups({"show_product", "list_product"})
158
+ * @Groups({"show_product", "list_product"})
160
159
*/
161
160
private $id;
162
161
@@ -165,19 +164,12 @@ to your class::
165
164
* @Groups({"show_product", "list_product"})
166
165
*/
167
166
private $name;
168
-
169
- /**
170
- * @ORM\Column(type="integer")
171
- * @Groups({"show_product", "list_product"})
172
- */
173
- private $price;
174
167
175
168
/**
176
169
* @ORM\Column(type="integer")
177
170
* @Groups({"show_product"})
178
171
*/
179
172
private $description;
180
-
181
173
}
182
174
183
175
You can now choose which groups to use when serializing::
You can’t perform that action at this time.
0 commit comments