Mercurial > packages > magicforger
view src/Generator/Model/snippets/has_many_relation.stub @ 35:55d2e5c5dad9 ls_dev_2025_09
Working on the factory, it's in a semi working state but obviously not complete
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 11 Sep 2025 21:25:51 -0400 |
| parents | 31109c61ce02 |
| children |
line wrap: on
line source
public function {{relationName}}() { return $this->hasMany({{relatedModel}}::class, '{{columnName}}'); }
