Models without tables should still be able to be associated.
If I have a
Product hasMany ProductImage hasOne FileHandler
ProductImage stores information about the file in the database.
Filehandler handles uploading, deleting the file physically from the
disk.
I could setup a really cool way to delete all product files when the
Product is deleted. But , I need FileHandler to be associated to
ProductImage.
Then I override function the delete function in ProductImage
del($id, $cascade = true){
parent::del($id,$cascade);
$this->FileHander->delete($whatever);
}
Perfect!!!
However, Cake tries to do database stuff on FileHandler and it throws a
bunch of errors.
Cake should know that $useTable = false; means that, even with
associations.
Yah, I know, file a ticket, I will. Anyone tried to do anything like
this successfully?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---