commit 324cbdbf7a366143b3abf2b6afbb02695781bdbd parent 52a0413ee3e06ff70e74ee94d51ded8d48b6bb35 Author: Felicitus <felicitus@felicitus.org> Date: Wed, 29 Jun 2011 16:06:34 +0200 Bugfix: Persist&Flush storage locations when creating them Diffstat:
M | src/de/RaumZeitLabor/PartKeepr/StorageLocation/StorageLocationService.php | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/de/RaumZeitLabor/PartKeepr/StorageLocation/StorageLocationService.php b/src/de/RaumZeitLabor/PartKeepr/StorageLocation/StorageLocationService.php @@ -40,6 +40,9 @@ class StorageLocationService extends Service implements RestfulService { $storageLocation = new StorageLocation(); $storageLocation->deserialize($this->getParameters()); + PartKeepr::getEM()->persist($storageLocation); + PartKeepr::getEM()->flush(); + return array("data" => $storageLocation->serialize()); }