But this will add the call for every attribute you want to delete, right? Couldn't we just execute this when the attribute is an objectrelation / objectrelation list one?

i mean, no need to do the query if you delete an ezprice attribute...