@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $name = $this->relation->getName(); |
| 55 | 55 | $foreignMapper = $mapper->getOrm()->getMapper($this->relation->getForeignMapper()); |
| 56 | 56 | $type = $foreignMapper->getEntityNamespace() |
| 57 | - . '\\' . $foreignMapper->getEntityClass(); |
|
| 57 | + . '\\' . $foreignMapper->getEntityClass(); |
|
| 58 | 58 | |
| 59 | 59 | $class->getNamespace()->addUse(Collection::class); |
| 60 | 60 | $class->getNamespace()->addUse($type, null, $type); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $setter = $class->addMethod(Str::methodName($name, 'set')); |
| 66 | 66 | $setter->setVisibility(ClassType::VISIBILITY_PUBLIC); |
| 67 | 67 | $setter->addParameter('value') |
| 68 | - ->setType('Collection'); |
|
| 68 | + ->setType('Collection'); |
|
| 69 | 69 | $setter->setBody('$this->set(\'' . $name . '\', $value);'); |
| 70 | 70 | |
| 71 | 71 | $getter = $class->addMethod(Str::methodName($name, 'get')); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $adder = $class->addMethod(Str::methodName($singular, 'add')); |
| 80 | 80 | $adder->setVisibility(ClassType::VISIBILITY_PUBLIC); |
| 81 | 81 | $adder->addParameter($singular) |
| 82 | - ->setType($type); |
|
| 82 | + ->setType($type); |
|
| 83 | 83 | $adder->setBody(sprintf('$this->get(\'%s\')->add($%s);', $name, $singular)); |
| 84 | 84 | |
| 85 | 85 | $class = $this->addAggregates($class); |