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.

Updating related records

I'm trying to implement an update to related records. I've read the documentation regarding this feature (available here:

I'm using Phalcon 1.2.3 and I get the following error when calling the update method:

Call to undefined method Phalcon\Mvc\Model\Resultset\Simple::update()

My (simplified) code is:

public function afterSave() {
    $this->getRelatedRecords()->update(array('column' => 'value');

Shouldn't this method be available on Phalcon 1.2.3?

Thank you.


That method was removed due to a problem, it seems we need to remove it from the docs too :)

It still in the docs. There's any other any to updated related records?


Is there a way to get related records for a resultset(not single row)?


To update related records: I guess they way as is given in the example in the docs? (the 'Instead of...' bit)