Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAlmacenR()
 {
     return $this->hasOne(Almacen::className(), ['id' => 'almacen_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAlmacens()
 {
     return $this->hasMany(Almacen::className(), ['cadena_id' => 'id']);
 }