/** * @return \yii\db\ActiveQuery */ public function getCliente() { return $this->hasOne(Cliente::className(), ['id' => 'cliente_id']); }
/** * @return \yii\db\ActiveQuery */ public function getClientes() { return $this->hasMany(Cliente::className(), ['persona_id' => 'id']); }