atk4 / book

4 stars 23 forks source link

syntactial sugar is bad here #29

Closed ayurmedia closed 8 years ago

ayurmedia commented 9 years ago

use default syntax, but make ->add() smarter.

romaninsh commented 8 years ago

Regarding your suggestion, there is a reason why addField() is separate from add('Field'), because the class of the field may change depending on model implementation.

I recommend you to join the effort on my new repo https://github.com/atk4/data, which is aiming to refactor models in ATK.