Ejemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsPageContents()
 {
     return $this->hasMany(CmsPageContent::className(), ['cms_page_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCmsPageContent()
 {
     return $this->hasOne(CmsPageContent::className(), ['id' => 'cms_page_content_id']);
 }