Skip to content
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

ArraySource: Find with empty field condition returns all records #117

Open
liviakuenzli opened this issue Feb 22, 2017 · 0 comments
Open
Labels

Comments

@liviakuenzli
Copy link

Situation: An array-based countries table with no record with country_iso_3_code being empty.

$result = $countryModel->find('list',
	array(
		'conditions' => array('country_iso_3_code' => ''),
	)
);

Expected $result to be empty, but it holds all entries of the table.

The following line is probably the culprint:

if ($value === '') {

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

No branches or pull requests

2 participants