I am using Phalcon version 1.3.4, I tried to run an Update query using PHQL createBuilder. I getting an error message as follow : "Call to undefined method Phalcon\Mvc\Model\Query\Builder::update()"
while running this query:
$result = $this->getModelsManager()->createBuilder()
->update('media', array('media_id' => $videoid))
->where('id = :id:', array('id' => $videoid))
->getQuery()
->execute();
Here is my sql statement I want to implement:
"UPDATE media SET media_id = $videoid WHERE id = $videoid"
am I missing something?