commit 6157592681bc88ba1b6c3ebf464d5d889c32a523
parent 8fee60e0747e4262ab097374f338b849d7cb721f
Author: Felicitus <felicitus@felicitus.org>
Date: Tue, 8 Mar 2016 16:15:47 +0100
Don't expose the project property, fixes #579
The root cause was that circular references are serialized as ID. Example:
Retrieve ```api/projects/25```. ```project``` propeties of any `ProjectPart` are now referenced as ID and not as object, as such the deserializer doesn't fill the object properly.
The proper solution is not to include a circular reference when retrieving projects.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/PartKeepr/ProjectBundle/Entity/ProjectPart.php b/src/PartKeepr/ProjectBundle/Entity/ProjectPart.php
@@ -37,7 +37,6 @@ class ProjectPart extends BaseEntity
* Specifies the project which belongs to this project part
*
* @ORM\ManyToOne(targetEntity="PartKeepr\ProjectBundle\Entity\Project", inversedBy="parts")
- * @Groups({"default"})
* @var Project
*/
private $project;