View more context

 

MichalKleiner

how would you end up with a record in the mapping table with null value in the relation column? shouldn’t the ORM take care of this?

nightjarnz

Depends. Unlink, yes. Delete, lolnoareyoucrazy? ¯_(ツ)_/¯

nightjarnz

Please investigate though, the above is a mighty big assumption :)

nightjarnz

It also depends on whether or not you are deleting via the ManyManyList, or the object itself.

nightjarnz

which (if the latter) would also then depend on whether or not the belongs_many_many is defined correctly too, if my assumption is an almighty wad of wrongness.

nightjarnz

onAfterDelete or onBeforeDelete or something on DataObject would probably hold all the secrets :)

nils

@MichalKleiner It’s not null, just using an ID that doesn’t exist

nils

Like GroupID = 5 and SimulationID = 10, then the Group is deleted but that record remains

nils

Need to check the SQL but that counts as null when the query happens

taoceanz

Is it possible to customise the CMS Files search to exclude certain directories or Filenames that include a particular directory?