Hi,
In AttachmentBehavior::deleteFiles and AttachemntBehavior::_cleanupOldFiles you used
$model->findById($model->id);
In my projects, instead of using id as PK I'm using the Table_Name_id (I.e user_id, subject_id etc).
Can you please support this case by changing the search into to:
$model->find('first', array('conditions'=>array($model->primaryKey=>$model->id)));
Hi, In AttachmentBehavior::deleteFiles and AttachemntBehavior::_cleanupOldFiles you used
$model->findById($model->id);
In my projects, instead of using
id
as PK I'm using the Table_Name_id (I.e user_id, subject_id etc). Can you please support this case by changing the search into to:$model->find('first', array('conditions'=>array($model->primaryKey=>$model->id)));
thanks!