Completed
Pull Request — master (#268)
by greg
07:26 queued 04:08
created

MissionGameCondition::refresh()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace PlaygroundGame\Mapper;
4
5
use PlaygroundGame\Mapper\AbstractMapper;
6
7
class MissionGameCondition extends AbstractMapper
8
{
9
    /**
10
    * refresh : supprimer une entite missionGameCondition
11
    * @param PlaygroundGame\Entity\MissionGameCondition $entity missionGameCondition
12
    *
13
    */
14
    public function refresh($entity)
15
    {
16
        $this->em->refresh($entity);
17
    }
18
19
    /**
20
    * getEntityRepository : recupere l'entite missionGameCondition
21
    *
22
    * @return \Doctrine\ORM\EntityRepository $missionGameCondition
23
    */
24
    public function getEntityRepository()
25
    {
26
        if (null === $this->er) {
27
            $this->er = $this->em->getRepository('PlaygroundGame\Entity\MissionGameCondition');
28
        }
29
30
        return $this->er;
31
    }
32
}
33