コード例 #1
0
ファイル: Categoria.php プロジェクト: AndersonCruz123/PAPS
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOcorrencias()
 {
     return $this->hasMany(Ocorrencia::className(), ['idCategoria' => 'idCategoria']);
 }
コード例 #2
0
ファイル: Foto.php プロジェクト: AndersonCruz123/PAPS
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getIdOcorrencia0()
 {
     return $this->hasOne(Ocorrencia::className(), ['idOcorrencia' => 'idOcorrencia']);
 }
コード例 #3
0
ファイル: User.php プロジェクト: AndersonCruz123/PAPS
 public function getOcorrencias()
 {
     return $this->hasMany(Ocorrencia::className(), ['cpfUsuario' => 'cpf']);
 }
コード例 #4
0
ファイル: Sublocal.php プロジェクト: AndersonCruz123/PAPS
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOcorrencias()
 {
     return $this->hasMany(Ocorrencia::className(), ['idSubLocal' => 'idSubLocal']);
 }