yiisoft / data

Data providers

Home Page:https://www.yiiframework.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Iterable processors with not exists field

kamarton opened this issue · comments

What steps will reproduce the problem?

If the field does not exist then an undefined index is generated, I assume this is incorrect.

What is the expected result?

  • In most cases: $item[$field] ?? null
    • =, <, <=, >, >=, in
  • With like I don't know what to do correct properly.
    • always fails?
$ php -r 'var_dump(stripos(null, ""));'
bool(false)
$ php -r 'var_dump(stripos(null, null));'
bool(false)
  • or null LIKE null is true

What do you get instead?

Undefined index: notExistsField

Q A
Version 1.0.0-under development
PHP version -
Operating system -