Esempio n. 1
0
 /**
  * Define SpecFieldGroup database schema
  */
 public static function defineSchema()
 {
     $schema = parent::defineSchema(__CLASS__);
     $schema->registerField(new ARForeignKeyField("categoryID", "Category", "ID", "Category", ARInteger::instance()));
 }
Esempio n. 2
0
 public static function defineSchema()
 {
     $schema = parent::defineSchema(__CLASS__);
     $schema->registerField(new ARField("classID", ARInteger::instance()));
     $schema->registerField(new ARField("stringIdentifier", ARVarchar::instance(40)));
 }