Skip to content

Commit

Permalink
ignore parent properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sHorst committed Jun 1, 2024
1 parent 5ad9bca commit 3b46dcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Domain/Model/AnnotationTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ public function testAnnotations(): void
}

foreach ($o->getProperties() as $prop) {
// ignore parent properties
if ($prop->getDeclaringClass()->name !== $this->testedClass) {
continue;
}

// TODO: maybe use Typo3 to check those
// if we redefined the column name use this
$tableColumnName = $table_properties[$prop->getName()]['fieldName'] ?? GeneralUtility::camelCaseToLowerCaseUnderscored($prop->getName());
Expand Down

0 comments on commit 3b46dcd

Please sign in to comment.