SELECT FROM JOIN maint_prior mp ON(pmp.cid=mp.cid AND pmp.main_pr_id= mp.id) pmp.property_id = 12345 AND pmp.remote_primary_key IS NOTNULL mp.maint_prio_type
public function prePersist(LifecycleEventArgs $args) //the first entity will have the PMP, so we catch it and continue to skip this if after this **/它保存了我的层次结构中的所有东西,甚至是一个新的PMP</