예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPackingListLines()
 {
     return $this->hasMany(PackingListLine::className(), ['note_id' => 'id'])->orderBy('name ASC');
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPacking()
 {
     return $this->hasOne(PackingListLine::className(), ['id' => 'packing_id']);
 }