Yii2: Ustawianie wartości domyślnych dla wszystkich atrybutów modelu

$customer = new Customer();
$customer->loadDefaultValues();
// $customer->xyz will be assigned the default value declared when defining the "xyz" column
Wicked Worm