cakephp-filter-plugin icon indicating copy to clipboard operation
cakephp-filter-plugin copied to clipboard

Fixes `join` with related models which have "associative" conditions.

Open albertboada opened this issue 10 years ago • 1 comments

Filtering for relations configured this way (associative conditions) was NOT working:

var $hasOne = array('Located' => array('conditions' => array(
    'Located.model' => 'Employee',
)));

Filtering for relations configured this way was working:

var $hasOne = array('Located' => array('conditions' => array(
    'Located.model = "Employee"',
)));

albertboada avatar Nov 05 '14 13:11 albertboada

Did you run the tests after this change? Do they still pass?

Sorry about (very) late reply :(

lecterror avatar Dec 13 '15 12:12 lecterror