From dbda539022c5f4789364eb70ac56be4a84858e86 Mon Sep 17 00:00:00 2001 From: Bjorn Twachtmann Date: Wed, 18 Apr 2018 15:03:02 +0100 Subject: [PATCH] Programmes 6323 deal with parents in other partner pids (#245) * Add new entity to track changes skipped due to parents in another partner_pid --- .../Entity/PipsAutoSkippedChange.php | 43 +++++++++++++++++++ .../PipsAutoSkippedChangeRepository.php | 25 +++++++++++ 2 files changed, 68 insertions(+) create mode 100644 src/Data/ProgrammesDb/Entity/PipsAutoSkippedChange.php create mode 100644 src/Data/ProgrammesDb/EntityRepository/PipsAutoSkippedChangeRepository.php diff --git a/src/Data/ProgrammesDb/Entity/PipsAutoSkippedChange.php b/src/Data/ProgrammesDb/Entity/PipsAutoSkippedChange.php new file mode 100644 index 00000000..41be5c16 --- /dev/null +++ b/src/Data/ProgrammesDb/Entity/PipsAutoSkippedChange.php @@ -0,0 +1,43 @@ +triggeringEntityId; + } + + /** + * @param string $triggeringEntityId + */ + public function setTriggeringEntityId(string $triggeringEntityId) + { + $this->triggeringEntityId = $triggeringEntityId; + } +} diff --git a/src/Data/ProgrammesDb/EntityRepository/PipsAutoSkippedChangeRepository.php b/src/Data/ProgrammesDb/EntityRepository/PipsAutoSkippedChangeRepository.php new file mode 100644 index 00000000..a3247e0c --- /dev/null +++ b/src/Data/ProgrammesDb/EntityRepository/PipsAutoSkippedChangeRepository.php @@ -0,0 +1,25 @@ +getEntityManager(); + $em->persist($pipsSkippedEntity); + $em->flush(); + } + + /** + * @param mixed $cid + * @return null|PipsAutoSkippedChange + */ + public function findById($cid) + { + return $this->find($cid); + } +}