Exemplo n.º 1
0
Arquivo: File.php Projeto: jamezlee/v3
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPages()
 {
     return $this->hasMany(Page::className(), ['id' => 'page_id'])->viaTable('page_has_file', ['file_id' => 'id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPages()
 {
     return $this->hasMany(Page::className(), ['author' => 'id']);
 }
Exemplo n.º 3
0
 public function getPage()
 {
     return $this->hasOne(Page::className(), ['id' => 'page_id']);
 }
Exemplo n.º 4
0
 /**
  * @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;
 }
Exemplo n.º 6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPages()
 {
     return $this->hasMany(Page::className(), ['created_by' => 'id']);
 }