From 88f5d50d774a071e97546febf38f98f3a5b1915d Mon Sep 17 00:00:00 2001 From: John WALTER Date: Mon, 18 Jan 2016 13:21:36 +0100 Subject: [PATCH] Ignored MappedSuperclass --- Command/DoctrineDecryptDatabaseCommand.php | 7 ++++++- Command/DoctrineEncryptDatabaseCommand.php | 6 ++++++ Command/DoctrineEncryptStatusCommand.php | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Command/DoctrineDecryptDatabaseCommand.php b/Command/DoctrineDecryptDatabaseCommand.php index 393739f0..d716814f 100644 --- a/Command/DoctrineDecryptDatabaseCommand.php +++ b/Command/DoctrineDecryptDatabaseCommand.php @@ -66,7 +66,9 @@ protected function execute(InputInterface $input, OutputInterface $output) //Set counter and loop through entity manager meta data $propertyCount = 0; foreach($metaDataArray as $metaData) { - + if ($metaData->isMappedSuperclass) { + continue; + } //Create reflectionClass for each entity $reflectionClass = New \ReflectionClass($metaData->name); $propertyArray = $reflectionClass->getProperties(); @@ -95,6 +97,9 @@ protected function execute(InputInterface $input, OutputInterface $output) //Loop through entity manager meta data foreach($metaDataArray as $metaData) { + if ($metaData->isMappedSuperclass) { + continue; + } //Create reflectionClass for each meta data object $reflectionClass = New \ReflectionClass($metaData->name); diff --git a/Command/DoctrineEncryptDatabaseCommand.php b/Command/DoctrineEncryptDatabaseCommand.php index 2b487c08..6df3d093 100644 --- a/Command/DoctrineEncryptDatabaseCommand.php +++ b/Command/DoctrineEncryptDatabaseCommand.php @@ -66,6 +66,9 @@ protected function execute(InputInterface $input, OutputInterface $output) //Set counter and loop through entity manager meta data $propertyCount = 0; foreach($metaDataArray as $metaData) { + if ($metaData->isMappedSuperclass) { + continue; + } //Create reflectionClass for each entity $reflectionClass = New \ReflectionClass($metaData->name); @@ -93,6 +96,9 @@ protected function execute(InputInterface $input, OutputInterface $output) //Loop through entity manager meta data foreach($metaDataArray as $metaData) { + if ($metaData->isMappedSuperclass) { + continue; + } //Create reflectionClass for each meta data object $reflectionClass = New \ReflectionClass($metaData->name); diff --git a/Command/DoctrineEncryptStatusCommand.php b/Command/DoctrineEncryptStatusCommand.php index c24d515c..e5f7b2bf 100644 --- a/Command/DoctrineEncryptStatusCommand.php +++ b/Command/DoctrineEncryptStatusCommand.php @@ -41,6 +41,9 @@ protected function execute(InputInterface $input, OutputInterface $output) $totalCount = 0; foreach($metaDataArray as $metaData) { + if ($metaData->isMappedSuperclass) { + continue; + } $reflectionClass = New \ReflectionClass($metaData->name); $propertyArray = $reflectionClass->getProperties();