I want to link a physical file with a row in a table. My intention is to use database habilities to delete the files that are referenced in the table. For example:
$o = Doctrine::getTable('Document')->find(12); $o->delete();
This code delete the row in the table, i want to delete an hipotetical file referenced in $o->file_location. I'm trying it with Events (preDelete, postDelete, preUpdate, postUpdate) but i can't make it works.