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.

Models\Phalcon\Mvc\Model\Query' not found

I have a problem when inserting data through a model in a multimodule application.

Apparently the database connection is much ok and I can select the database table content to controller through the same model.

The strange thing is I can't insert.


So happy I managed to get around.

This is what I did;

    $query = "";
     $db = $this->getDI()->get('db')->prepare($query);

      $results = $db->execute();

Probably you have to prepend a \ before Phalcon\Mvc\Model\Query: \Phalcon\Mvc\Model\Query