public function __construct(Request $request) { parent::__construct($request); $this->_notifyParticipants = Participant::find()->with('company')->where(['_id' => ['$in' => $this->_request->participantsId], 'supportEmails' => ['$exists' => 1]])->all(); }
public function __construct(Request $request) { parent::__construct($request); $ids = array_merge($request->participantsId, $request->getOldAttribute('participantsId')); $ids = array_map("unserialize", array_unique(array_map("serialize", $ids))); }