MyModel::model('create')->update();
Page 1 of 1
One More Parameter In The Model() Static Method
#1
Posted 15 February 2013 - 05:28 AM
Do you believe it would be a convenience to have another parameter in the model static method ( model() ) by which to be able to declare a scenario such as :
#2
Posted 15 February 2013 - 03:00 PM
Usually update/insert is done for new objects or objects got from database so it makes little difference in this case.
#3
Posted 19 February 2013 - 04:11 AM
Also the model static method is being dropped in yii 2.0 as I recall.
See my development site @ www.CodeTheInter.net (BETA)


Quote
If you make it idiot proof, they'll build a better idiot
#4
Posted 20 February 2013 - 09:25 AM
Share this topic:
Page 1 of 1

Help
This topic is locked













