// Remove $table and $identifier property from all classes, and add static $definition instead

This commit is contained in:
rMalie
2011-12-05 13:56:03 +00:00
parent e501530475
commit b59ddba454
87 changed files with 394 additions and 214 deletions
+5 -2
View File
@@ -42,8 +42,11 @@ class SceneCore extends ObjectModel
/** @var array Products */
public $products;
protected $table = 'scene';
protected $identifier = 'id_scene';
public static $definition = array(
'table' => 'scene',
'primary' => 'id_scene',
'multilang' => true,
);
protected $fieldsRequired = array('active');
protected $fieldsValidate = array('active' => 'isBool', 'zones' => 'isSceneZones', 'categories' => 'isArrayWithIds');