Skip to content

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