phalcon/invo — pull request #28 by tyler-shaw (2014-09-12 00:39:30+00:00)
Title: Changed findFirstById() to findFirst()

I installed this demo today using Phalcon 1.3.2 to find the Edit Product Type feature does not function. When click the Edit Product Type button I was receiving a "array to string conversion" notice on line 64 and the "Product type to edit was not found" error message.

Upon viewing other controllers, it seems that other edit functions such as that on the ProductsController use Model::findFirst() as opposed to Model::findFirstById(). I also do not see findFirstById() in the documentation.

Please correct me if I'm wrong, as this is my first try at Phalcon... but my little change corrected the error for me.

----

Changed ProductTypes:findFirstById() to ProductTypes::findFirst() in ProducttypesController.