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