public static function getDefaultMetadata() { $metadata = parent::getDefaultMetadata(); $metadata[__CLASS__] = array('members' => array('lMember'), 'relations' => array('is' => array(RedBeanModel::MANY_MANY, 'I')), 'rules' => array(array('lMember', 'safe'))); return $metadata; }
public static function getDefaultMetadata() { $metadata = parent::getDefaultMetadata(); $metadata[__CLASS__] = array('members' => array('jMember'), 'relations' => array('i' => array(static::HAS_ONE_BELONGS_TO, 'I')), 'rules' => array(array('jMember', 'type', 'type' => 'string'), array('jMember', 'length', 'max' => 255))); return $metadata; }
public static function getDefaultMetadata() { $metadata = parent::getDefaultMetadata(); $metadata[__CLASS__] = array('members' => array('jMember'), 'relations' => array('i' => array(RedBeanModel::HAS_ONE_BELONGS_TO, 'I')), 'rules' => array(array('jMember', 'safe'))); return $metadata; }
public static function getDefaultMetadata() { $metadata = parent::getDefaultMetadata(); $metadata[__CLASS__] = array('members' => array('iMember'), 'relations' => array('j' => array(static::HAS_ONE, 'J'), 'ks' => array(static::HAS_MANY, 'K'), 'ls' => array(static::MANY_MANY, 'L'), 'i' => array(static::HAS_MANY_BELONGS_TO, 'I'), 'is' => array(static::HAS_MANY, 'I', static::OWNED), 'hasOneRelation' => array(static::HAS_ONE, 'CustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'hasOneRelation'), 'hasManyRelation' => array(static::HAS_MANY, 'A', static::OWNED), 'manyManyRelation' => array(static::MANY_MANY, 'Z')), 'rules' => array(array('iMember', 'type', 'type' => 'string'), array('iMember', 'length', 'max' => 255))); return $metadata; }
public static function getDefaultMetadata() { $metadata = parent::getDefaultMetadata(); $metadata[__CLASS__] = array('members' => array('kMember'), 'relations' => array('i' => array(static::HAS_MANY_BELONGS_TO, 'I'), 'ii' => array(static::HAS_MANY_BELONGS_TO, 'II', static::NOT_OWNED, static::LINK_TYPE_ASSUMPTIVE), 'iii' => array(static::HAS_MANY_BELONGS_TO, 'III', static::OWNED, static::LINK_TYPE_SPECIFIC, 'ilink')), 'rules' => array(array('kMember', 'type', 'type' => 'string'), array('kMember', 'length', 'max' => 255))); return $metadata; }
public static function getDefaultMetadata() { $metadata = parent::getDefaultMetadata(); $metadata[__CLASS__] = array('members' => array('iMember'), 'relations' => array('j' => array(RedBeanModel::HAS_ONE, 'J'), 'ks' => array(RedBeanModel::HAS_MANY, 'K'), 'ls' => array(RedBeanModel::MANY_MANY, 'L'), 'i' => array(RedBeanModel::HAS_MANY_BELONGS_TO, 'I'), 'is' => array(RedBeanModel::HAS_MANY, 'I', RedBeanModel::OWNED), 'hasOneRelation' => array(RedBeanModel::HAS_ONE, 'CustomField', RedBeanModel::OWNED), 'hasManyRelation' => array(RedBeanModel::HAS_MANY, 'A', RedBeanModel::OWNED), 'manyManyRelation' => array(RedBeanModel::MANY_MANY, 'Z')), 'rules' => array(array('iMember', 'safe'))); return $metadata; }