src/CoreBundle/EventListener/AttributeAddingListener.php
public function handle(CreateMetaModelEvent $event)
    {
        if (null === $metaModel = $event->getMetaModel()) {
            return;
        }

        foreach ($this->attributeFactory->createAttributesForMetaModel($metaModel) as $attribute) {
            $metaModel->addAttribute($attribute);
        }
    }
public function handle(CreateMetaModelEvent $event)
    {
        if (null === $metaModel = $event->getMetaModel()) {
            return;
        }

        foreach ($this->attributeFactory->createAttributesForMetaModel($metaModel) as $attribute) {
            $metaModel->addAttribute($attribute);
        }
    }
public function handle ( CreateMetaModelEvent $ event ) { if ( null === $ metaModel = $ event -> getMetaModel ( ) ) { return ; } foreach ( $ this -> attributeFactory -> createAttributesForMetaModel ( $ metaModel ) as $ attribute ) { $ metaModel -> addAttribute ( $ attribute ) ; } }
Add attributes to the MetaModel.

@param CreateMetaModelEvent $event The event.

@return void
Add attributes to the MetaModel .