I'm using phalcon, and I'm trying to make the action on cascade set null all values. Now I have this:
$this->hasOne("folder_id", "Common\Models\Folder", "id", array(
'alias' => 'Folder',
'foreignKey' => array(
'action' => Relation::ACTION_CASCADE
)
));
But that will delete the rows, I just want to set null, not delete.