public function applied(Request $request)
 {
     $joboffer = Joboffers::with("experience")->find($request->input('jobid'));
     $statuses = Statuses::get();
     $applied = Applications::with("candidate", "candidate.experience", "candidate.user", "status")->where('joboffersid', '=', $request->input('jobid'))->get();
     return response()->json(array('success' => true, 'joboffer' => $joboffer, 'applied' => $applied, 'statuses' => $statuses));
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStatuses()
 {
     return $this->hasMany(Statuses::className(), ['id_user' => 'id']);
 }
Ejemplo n.º 3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getStatus()
 {
     return $this->hasOne(Statuses::className(), ['id' => 'id_status']);
 }