Answers for "Yii2: Setting default values for all attributes of a model"

0

Yii2: Setting default values for all attributes of a model

$customer = new Customer();
$customer->loadDefaultValues();
// $customer->xyz will be assigned the default value declared when defining the "xyz" column
Posted by: Guest on April-21-2021

Code answers related to "Yii2: Setting default values for all attributes of a model"

Browse Popular Code Answers by Language