Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
albertboada wants to merge 1 commit intolecterror:1.3.xlecterror/cakephp-filter-plugin:1.3.xfrom
albertboada:b/associative-conditions-relatedmodelalbertboada/cakephp-filter-plugin:b/associative-conditions-relatedmodelCopy head branch name to clipboard
Open

Fixes join with related models which have "associative" conditions.#21
albertboada wants to merge 1 commit intolecterror:1.3.xlecterror/cakephp-filter-plugin:1.3.xfrom
albertboada:b/associative-conditions-relatedmodelalbertboada/cakephp-filter-plugin:b/associative-conditions-relatedmodelCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.