Skip to content

Commit

Permalink
Fix many to one variable naming.
Browse files Browse the repository at this point in the history
Signed-off-by: Toha <[email protected]>
  • Loading branch information
tohenk committed Sep 21, 2024
1 parent 0daa9db commit a44be6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Annotation/Model/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ protected function writeRelationsGetterAndSetter(WriterInterface $writer)
->write('public function set'.$nameSingular.'('.$typehints['set_arg'].'$'.$this->getNaming($foreign->getReferencedTable()->getName()).')'.$typehints['set_return'])
->write('{')
->indent()
->write('$this->'.$this->getNaming($this->getRelatedVarName($foreign->getReferencedTable()->getName(), $related)).' = $'.$this->getNaming($foreign->getReferencedTable()->getModelName()).';')
->write('$this->'.$this->getNaming($this->getRelatedVarName($foreign->getReferencedTable()->getName(), $related)).' = $'.$this->getNaming($foreign->getReferencedTable()->getName()).';')
->write('')
->write('return $this;')
->outdent()
Expand Down

0 comments on commit a44be6d

Please sign in to comment.