How to set a new attribute for a model object in yii2?
1 answer
In the classroom model
public $newParam; Register it in the rules
- and how to create it in behaviors - SHEROZ Juraev
- What does it mean to create in behaviors? In class? - robertobadjio
- I need to create a new attribute in the model object - SHEROZ Juraev
- A new attribute is created in the class, wrote above - robertobadjio
- What happens if the attribute conflicts with the connection - SHEROZ Juraev
|