mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-29 10:10:25 -07:00
19 lines
360 B
PHP
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);
|
|
}
|
|
} |