Hey there,
I've been using Phalcon for a while now, mostly for personal projects, but in my main job I use CakePHP.
One thing I miss from Cake when using Phalcon is the ability of Cake's ORM to translate arrays to fields/values of a SQL statement, for example:
public function updateProducts($entity){
TableRegistry::get('InventoryProducts')
->query()
->update()
->set([
'inventory_id' => $entity->id
])
->where([
'uid' => $entity->uid,
'inventory_id' => 0
])
->execute();
}
In Phalcon, the user has to bind the variables to their placehoders in the SQL statement (In order to prevent SQL injection), which is later processed by PHQL; this effort could be avoided by using this syntax, among other advantages, like manipulating the query later more easily.
I think one could use a hack to explode(",", $theArguments)
But it would be a better solution to have this feature natively in the ORM.
If it has been already implemented or is planned for future realeases, please let me know; otherwise I would like to know how much effort it would take to do it. I would gladly contribute to the development of this feature.