/** * @return \yii\db\ActiveQuery */ public function getPages() { return $this->hasMany(Page::className(), ['id' => 'page_id'])->viaTable('page_has_file', ['file_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getPages() { return $this->hasMany(Page::className(), ['author' => 'id']); }
public function getPage() { return $this->hasOne(Page::className(), ['id' => 'page_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPages() { return $this->hasMany(Page::className(), ['creator_account_id' => 'id']); }
/** * Invalidate model tags. * @return bool */ public function invalidateTags() { /** @var \DevGroup\TagDependencyHelper\TagDependencyTrait $this */ \yii\caching\TagDependency::invalidate($this->getTagDependencyCacheComponent(), [self::commonTag(), Page::commonTag(), $this->objectTag(), NamingHelper::getObjectTag(Page::className(), $this->getPrimaryKey())]); return true; }
/** * @return \yii\db\ActiveQuery */ public function getPages() { return $this->hasMany(Page::className(), ['created_by' => 'id']); }