Well, I could see that, but, in this specific circumstance, the naming is
incorrect.
I do not want to be rude, but did you even check it out?
This is a glimpse of the model generated by Cook:
//WHERE - FILTER : Name
if ($this->getState('filter._booking_id_contractor_id'))
$this->addWhere('_booking_id_.contractor_id = ' . $this->_db->Quote($this->getState('filter._booking_id_contractor_id')));
//WHERE - FILTER : Location A
if ($this->getState('filter.location_a_id') != null)
$this->addWhere('a.location_a_id = ' . (int) $this->getState('filter.location_a_id'));
//WHERE - FILTER : Location B
if ($this->getState('filter.location_b_id') != null)
$this->addWhere('a.location_b_id = ' . (int) $this->getState('filter.location_b_id'));
//WHERE - FILTER : Driver ID
if ($this->getState('filter.driver_id') != null)
$this->addWhere('a.driver_id = ' . (int) $this->getState('filter.driver_id'));
//WHERE - FILTER : Car ID
if ($this->getState('filter.car_id') != null)
$this->addWhere('a.car_id = ' . (int) $this->getState('filter.car_id'));
//WHERE - FILTER : Status
if ($this->getState('filter.status'))
$this->addWhere('a.status = ' . $this->_db->Quote($this->getState('filter.status')));
//WHERE - FILTER : Booking ID
if ($this->getState('filter.booking_id') != null)
$this->addWhere('a.booking_id = ' . (int) $this->getState('filter.booking_id'));
If you take a look at the code above, NONE of the getState parameters has "filter._", only the first one, which is wrong.
As I previously mentioned, in the view the naming is without "_".
I very much appreciate Cook, more than you imagine, and that is why I want to help you guys get rid of all the tiny bugs that I stumble upon (not so many

)