Skip to content

Commit

Permalink
Implement set discriminator field default value event listener.
Browse files Browse the repository at this point in the history
  • Loading branch information
igor committed Apr 5, 2017
1 parent 3ab93ac commit e10b961
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Resources/config/mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ parameters:

darvin_utils.mapping.metadata_factory.class: Darvin\Utils\Mapping\MetadataFactory

darvin_utils.mapping.set_default_discriminator_listener.class: Darvin\Utils\EventListener\SetDefaultDiscriminatorListener

services:
darvin_utils.mapping.annotation_driver.abstract:
class: "%darvin_utils.mapping.annotation_driver.abstract.class%"
Expand Down Expand Up @@ -79,3 +81,9 @@ services:
class: "%darvin_utils.mapping.metadata_factory.class%"
arguments:
- "@darvin_utils.object_manager.provider"

darvin_utils.mapping.set_default_discriminator_listener:
class: "%darvin_utils.mapping.set_default_discriminator_listener.class%"
public: false
tags:
- { name: doctrine.event_listener, event: postGenerateSchemaTable }

0 comments on commit e10b961

Please sign in to comment.