Mercurial > packages > magicforger
view src/Generator/Model/snippets/has_many_relation.stub @ 36:76584181267a ls_dev_2025_09
Got factories working in a basic way, not sure how complex tables will handle it though
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Sat, 20 Sep 2025 17:14:29 -0400 |
| parents | 31109c61ce02 |
| children |
line wrap: on
line source
public function {{relationName}}() { return $this->hasMany({{relatedModel}}::class, '{{columnName}}'); }
