Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDocumenttypes()
 {
     return $this->hasMany(Documenttype::className(), ['TopicTypeId' => 'TopicTypeId']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDocumentType()
 {
     return $this->hasOne(Documenttype::className(), ['DocumentTypeId' => 'DocumentTypeId']);
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDocumentTypes()
 {
     return $this->hasMany(Documenttype::className(), ['DocumentTypeId' => 'DocumentTypeId'])->viaTable('documenttypetopic', ['TopicId' => 'TopicId']);
 }