for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* (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\ResourceRepository\GenericResourceElement;
use FSi\Bundle\ResourceRepositoryBundle\Model\ResourceValue;
use FSi\Bundle\ResourceRepositoryBundle\Model\ResourceValueRepository;
abstract class ResourceElement extends GenericResourceElement implements Element
{
use ElementImpl;
public function getResourceValueRepository(): ResourceValueRepository
return $this->getRepository();
}
public function save(ResourceValue $resource): void
$this->getObjectManager()->persist($resource);
$this->getObjectManager()->flush();