Skip to content

Fixes join with related models which have "associative" conditions. #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 1.3.x
Choose a base branch
from

Conversation

albertboada
Copy link

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"',
)));

Filtering for relations configured this way (associative conditions) was NOT working:
```php
var $hasOne = array('Located' => array('conditions' => array(
    'Located.model' => 'Employee',
)));
```

Filtering for relations configured this way was working:
```php
var $hasOne = array('Located' => array('conditions' => array(
    'Located.model = "Employee"',
)));
```
@albertboada albertboada force-pushed the b/associative-conditions-relatedmodel branch from b1c11ef to 12daea1 Compare November 5, 2014 13:04
@lecterror
Copy link
Owner

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

Sorry about (very) late reply :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants