Set "on delete" options for various join columns
Created closure table and listener to keep it updated
Added ancestors and descendants to dog entity