Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Criteria Search OR operator

Its possible to Criteria generate a Condition with Or instead of AND

$data = Criteria::fromInput($this->getDI(), '\Apps\Models\Conteudos', $fields);


["conditions"]=> string(89) "titulo LIKE :titulo: AND subtitulo LIKE :subtitulo: AND conteudotexto=:conteudotexto:"


It always uses AND, maybe you can create your own function based on the original one:

thanks I'll, maybe you can create an option to change it!!

thanks andres!