Application\Model\Test\ProductWithDefaults::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( $attributes = [] )
    public function __construct($attributes = array())
    {
        parent::__construct(array('table' => 'products', 'attributes' => $attributes, 'fields' => array('description' => self::$defaultDescription, 'name' => function () {
            return ProductWithDefaults::$defaultName;
        }, 'id_category', 'id_manufacturer', 'sale')));
    }
ProductWithDefaults