Mercurial > packages > magicforger
comparison src/Generator/Model/stubs/model.pivot.stub @ 23:827efbf4d73c main-dev
Huge changes to the relationships for models and more complex
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Fri, 11 Apr 2025 20:50:20 -0400 |
| parents | b0b2e79ad8e6 |
| children | 31109c61ce02 |
comparison
equal
deleted
inserted
replaced
| 22:ee8ef14e158d | 23:827efbf4d73c |
|---|---|
| 8 { | 8 { |
| 9 // | 9 // |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Indicates if the model should be timestamped. | 12 * Indicates if the model should be timestamped. |
| 13 * By default our pivots will not use timestamps | 13 * By default our pivots will not use timestamps |
| 14 * | 14 * |
| 15 * @var bool | 15 * @var bool |
| 16 */ | 16 */ |
| 17 public $timestamps = false; | 17 public $timestamps = false; |
| 18 | 18 |
| 19 | 19 |
| 20 //relations | |
| 21 | |
| 22 // BelongsTo | |
| 23 # {{ belongs_to_relationships }} | |
| 24 | |
| 25 // HasMany | |
| 26 # {{ has_may_relationships }} | |
| 27 | |
| 28 // HasManyThrough | |
| 29 # {{ has_many_through_relationships }} | |
| 20 | 30 |
| 21 } | 31 } |
