I am trying to write some PHP code to delete records. Are there any methods and/or techniques I could use to handle the deletes cleanly, especially when deleting records which have associated repeat groups, which are stored in Fabrik's repeat tables? I am concerned that the code could get messy and become a nightmare to maintain wen the application is modified.
Basically, I am looking for a method to call, to effect the delete and maintain referential integrity and not be plagued by orphaned records and, possibly, ensure child records are not deleted before their parents.
Basically, I am looking for a method to call, to effect the delete and maintain referential integrity and not be plagued by orphaned records and, possibly, ensure child records are not deleted before their parents.