Пример #1
0
 /**
  * Get metas.
  *
  * @return \yii\db\ActiveRelation
  */
 public function getMetas()
 {
     return $this->hasMany(MetaKey::className(), ['meta_key_id' => 'id']);
 }
Пример #2
0
 /**
  * Get meta key.
  *
  * @return \yii\db\ActiveRelation
  */
 public function getMetaKey()
 {
     return $this->hasOne(MetaKey::className(), ['id' => 'meta_key_id']);
 }