P
P
pantsarny2015-06-15 10:08:14
Yii
pantsarny, 2015-06-15 10:08:14

Yii2 - how to store null values?

Good afternoon, I'm interested in the problem that exists in the first version of the framework. I would like to store NULL values ​​in valid columns of database tables, but after mass assignment of model attributes, empty lines get there. How to deal with it and is it worth it at all? Are you using a validator a la empty2null?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2015-06-15
@pantsarny

Use the default validator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question