Esempio n. 1
0
 public function findByPartnerId($parentId)
 {
     $query = self::find();
     $query->innerJoinWith(['service', 'user']);
     $serviceTable = Service::tableName();
     $query->where([$serviceTable . '.parentId' => $parentId]);
     if (!empty($this->dateUse)) {
         $query->andFilterWhere(['like', 'dateUse', $this->dateUse]);
     }
     return $query->all();
 }