I have the following code that was working 2 days ago.
$arrResult = $this->modelsManager->executeQuery("SELECT * FROM Phrase p inner join User u on p.user = u.id where (p.phrase like :search: or u.codeLink2me = :search:)", array('search' => '%' . $searchInput . '%') ); //getting user info if($arrResult->valid())
Sudenlly it stopped working at production but the same code works at development environment. I got this error at production:
Cannot access empty property on line 32.
The line 32 is if($arrResult->valid()). This just happens if the $arrResult has a result. If it doesnt the valid() property is false and the code work as expected.
I dont have a clue of what is going on.
BTW: I dumped the production db to use for a test and everything works on development environment.