Skip to content

Conversation

nocaremc
Copy link

Passing in array data with broken sequential arrays created exceptions with $in, $nin, etc.
Added code which will re-index the query conditions array.

This can be re-created like so:

$arr['conditions']['id']['$in'] => array( 'a', 'b', 'c', 'd' );
unset( $arr['conditions']['id']['$in][2] ); // Break natural index order
$result = $this->Model->find( 'all', $arr );

Signed-off-by: Josh Rodarte [email protected]

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.

1 participant