1 | <?php |
||
11 | class AbstractRepository extends EntityRepository |
||
|
|||
12 | { |
||
13 | /** |
||
14 | * @Inject("config") |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $appConfig; |
||
18 | |||
19 | /** |
||
20 | * エンティティを削除します。 |
||
21 | * 物理削除ではなく、del_flgを利用した論理削除を行います。 |
||
22 | * |
||
23 | * @param AbstractEntity $entity |
||
24 | */ |
||
25 | 2 | public function delete($entity) |
|
29 | |||
30 | /** |
||
31 | * エンティティの登録/保存します。 |
||
32 | * |
||
33 | * @param $entity|AbstractEntity エンティティ |
||
34 | */ |
||
35 | public function save($entity) |
||
39 | |||
40 | 1094 | protected function getCacheLifetime() |
|
45 | } |
||
46 |