diff --git a/src/ColumnType/AbstractColumnType.php b/src/ColumnType/AbstractColumnType.php index 1470c23..6ff43ef 100644 --- a/src/ColumnType/AbstractColumnType.php +++ b/src/ColumnType/AbstractColumnType.php @@ -81,6 +81,10 @@ public function configureOptions(OptionsResolver $resolver): void public function getValue(string $field, object $object, array $options = []) { + if ('__self' === $field) { + return $object; + } + if ($options['isMapped']) { try { if ($options['resolve_collections']) {