Dereference of null pointer in zim_Phalcon_Mvc_Model_Resultset_Complex_valid()