@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function byId($id) { |
| 50 | 50 | if (!isset($this->repository[$id])) { |
| 51 | - $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
| 51 | + $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
| 52 | 52 | $this->repository[$id] = $factory->create( |
| 53 | 53 | (object) array('id' => $id), |
| 54 | 54 | $this->getEntityTypeName(), |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $entity->update($mapped); |
| 80 | 80 | return $entity; |
| 81 | 81 | } |
| 82 | - $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
| 82 | + $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
| 83 | 83 | $this->repository[$mapped->id] = $factory->create($mapped, $this->getEntityTypeName(), FALSE); |
| 84 | 84 | return $this->repository[$mapped->id]; |
| 85 | 85 | } |