there are 3 tables , one of them linking table.
made here such request:
$dr = Driver::find()->joinWith('idTrips')
->where(['not', ['Date_end' => null]])
idTrips - getter to relate the tables (it works like a clock)
The problem is that, if any records of Driver will find more records from a connected table and they will be like this :
 => ['Date_end' => '2014'],
 => ['Date_end' => null],
then the condition where(['not', ['Date_end' => null]]) work as 'Date_end' => null
I need to see if at least one value is null , then not to take it!