public function before_delete(\Messages\Model\Attachment $model)Here Attachment is the related model and Conversation the "parent" model.
{
$conversation = $model->wf_msg_conversations;
\File::delete('modules/messages'.DS.$conversation->name.'_'.$conversation->id.DS.$model->name);
}
Orm\FrozenObject [ Error ]:
No changes allowed.
957 }
958 elseif (is_array($rels))
959 {
960 if ($this->_frozen)
961 {
962 throw new FrozenObject('No changes allowed.');
963 }
964 $this->_data_relations = $rels;
965 }
966 else
967 {
I don't know why my Ogject is frozen... :/
It looks like you're new here. If you want to get involved, click one of these buttons!