1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-29 10:10:25 -07:00
PrintABrick/src/AppBundle/Repository/BaseRepository.php
2017-03-16 02:43:10 +01:00

19 lines
360 B
PHP

<?php
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
class BaseRepository extends EntityRepository
{
public function save($entity) {
$this->_em->persist($entity);
$this->_em->flush($entity);
}
public function delete($entity) {
$this->_em->remove($entity);
$this->_em->flush($entity);
}
}