Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReceivedDates()
 {
     return $this->hasMany(ReceivedDate::className(), ['id' => 'received_date_id'])->viaTable('pattern_has_update', ['pattern_update_id' => 'id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReceivedDate()
 {
     return $this->hasOne(ReceivedDate::className(), ['id' => 'received_date_id']);
 }