Application\Model\Test\ProductWithDefaults::__construct PHP Method

__construct() public method

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