alexander-a2/symfony-extendable-entity-bundle

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/alexander-a2/symfony-extendable-entity-bundle

dev-main 2025-04-18 08:24 UTC

This package is auto-updated.

Last update: 2025-09-18 09:28:57 UTC


README

extendable_entity:
    resource: '@ExtendableEntityBundle/Resources/config/routing.yml'
    prefix: /admin/entity/extendable/
    name_prefix: admin_entity_extendable_

How it works

ClassMetadataFactory

(Defined as doctrine.orm setting, being prepended to global config in ExtendableEntityExtension)

  • Set Property Reflection to ExtendedPropertyRuntimeReflectionService

ExtendedPropertyAccessor

Decorated PropertyAccessor

(Decorated in services with property_accessor)

  • Handles setValue() / getValue()

ExtendedPropertyRuntimeReflectionService

  • Returns ExtendedPropertyReflection for extended field attributes

ExtendedPropertyReflection

  • Handles getValue() / setValue() for extended fields

EntityMetadataLoadListener

loaded for read docrtine.metadata

injected as event_listener in services.yml

  • Returns ExtendableEntityReflectionClass for extended entities instead of ReflectionClass