This website works better with JavaScript.
Home
Explore
Help
Sign In
Laclic
/
LcShopBundle
Watch
3
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
AdminController : setPosition on persist
reduction
Guillaume
4 years ago
parent
1ee947b3a5
commit
273b325a30
1 changed files
with
4 additions
and
1 deletions
Split View
Show Diff Stats
+4
-1
ShopBundle/Controller/Admin/AdminController.php
+ 4
- 1
ShopBundle/Controller/Admin/AdminController.php
View File
@@ -32,7 +32,10 @@ class AdminController extends EasyAdminController
}
$this->setUpdated($entity) ;
$entity->setPosition(0) ;
if (method_exists($entity, 'setPosition')) {
$entity->setPosition(0) ;
}
parent::persistEntity($entity);
}
Write
Preview
Loading…
Cancel
Save