class Model_Example extends Orm\Model {
protected static $_properties = array(
'prop' => array(
'default' => 'value'
),
);
}
object(Model_Project)#57 (7) {
["_is_new":"Orm\Model":private]=>
bool(true)
["_frozen":"Orm\Model":private]=>
bool(false)
["_data":"Orm\Model":private]=>
array(13) {
["industry"]=>
string(2) "02"
["url_success"]=>
string(22) "http://www.success.com"
["url_fail"]=>
string(19) "http://www.fail.com"
["url_push"]=>
string(19) "http://www.push.com"
["p_name"]=>
string(11) "testprojekt"
["image"]=>
string(25) "http://pfad-zu-bildern.de"
["color"]=>
string(11) "z.b. 223421"
["id_country"]=>
string(2) "81"
["type"]=>
NULL
["url_param1"]=>
NULL
["url_param2"]=>
NULL
["id_merchant"]=>
string(6) "843360"
["status"]=>
int(1)
}
["_original":"Orm\Model":private]=>
array(0) {
}
["_data_relations":"Orm\Model":private]=>
array(0) {
}
["_original_relations":"Orm\Model":private]=>
array(0) {
}
["_iterable":protected]=>
array(0) {
}
}
Fuel\Core\Database_Exception [ 1048 ]: Column 'force_custom_voucher_ranking' cannot be null [ INSERT INTO `vs1_project` (`force_custom_voucher_ranking`, `id_merchant`, `id_industry`, `id_country`, `url_fail`, `url_success`, `url_push`, `date_create`, `status`, `industry`, `p_name`, `image`, `color`, `type`, `url_param1`, `url_param2`, `voucher_promotion_display`, `force_custom_promotion_ranking`, `always_show_promotions`, `manual_check`, `manual_check_promotions`, `blacklist`) VALUES (NULL, '843360', NULL, '81', 'http://www.fail.com', 'http://www.success.com', 'http://www.push.com', '2011-07-05 12:31:10', 1, '02', 'testprojekt', 'http://pfad-zu-bildern.de', 'z.b. 223421', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) ]
protected static $_properties = array('id_project', 'id_merchant', 'id_industry', 'id_country', 'url_fail',
'url_success', 'url_push' ,'date_create', 'status',
'industry', 'p_name', 'image', 'color', 'type',
'url_param1', 'url_param2', 'voucher_promotion_display',
'force_custom_voucher_ranking' => array('default' => '0'),
'force_custom_promotion_ranking', 'always_show_promotions',
'manual_check', 'manual_check_promotions', 'blacklist');
It looks like you're new here. If you want to get involved, click one of these buttons!