Mercurial > packages > magicforger
view src/Generator/Model/snippets/has_many_relation.stub @ 38:c062f013fd19 ls_dev_2025_09
Making test a default with the -a option
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 25 Sep 2025 20:24:13 -0400 |
| parents | 31109c61ce02 |
| children |
line wrap: on
line source
public function {{relationName}}() { return $this->hasMany({{relatedModel}}::class, '{{columnName}}'); }
