Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
36 | private function loadOrCreate($accountId) |
||
37 | { |
||
38 | $entity = $this->entityManager->find('TariochEveapiFetcherBundle:CharAccountBalance', $accountId); |
||
39 | if ($entity === null) { |
||
40 | $entity = new CharAccountBalance($accountId); |
||
41 | $this->entityManager->persist($entity); |
||
42 | } |
||
43 | |||
44 | return $entity; |
||
45 | } |
||
46 | } |
||
47 |