I am duplicating an active record that has a field if tipe "mediumblob" on mysqp.
It don't works.
I am duplicating an active record that has a field if tipe "mediumblob" on mysqp.
It don't works.
Please, more details.
For example I am duplicating some recors, and I do like that:
$oldtemplate=$this->loadwps_templates(); $newtemplate=new wps_templates; $newtemplate->setAttributes($oldtemplate->getAttributes()); $newtemplate->wtm_name.=' COPY'; $newtemplate->Save();
Both $newtemplate and $oldtemplate are active record.
Where ever thoose line in my application do what they have to do, but if the model contain a field of type "blob", it don't works.
Do you mean the blog attributes are not copied?
Can you get anything by reading those blob attributes from $oldtemplate?
I can get all from old blob, and I can set one by one the properties in newtemplate, but it is not saved from $newtemplate->save()