for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) FSi sp. z o.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FSi\Bundle\AdminBundle\Doctrine\Admin;
use FSi\Bundle\AdminBundle\Admin\CRUD\AbstractCRUD;
* @author Norbert Orzechowicz <[email protected]>
abstract class CRUDElement extends AbstractCRUD implements Element
{
use DataIndexerElementImpl;
* {@inheritdoc}
public function save($object)
$this->getObjectManager()->persist($object);
$this->getObjectManager()->flush();
}
public function saveDataGrid()
public function delete($object)
$this->getObjectManager()->remove($object);