public function handlePrePersistModelEvent(PrePersistModelEvent $event)
    {
        $enviroment     = $event->getEnvironment();
        $dataDefinition = $enviroment->getDataDefinition();

        if (null === ($parentDataDefinition = $enviroment->getParentDataDefinition())
            || (false === $dataDefinition->getPropertiesDefinition()->hasProperty('ptable'))
            || (false === $dataDefinition->getBasicDefinition()->isDynamicParentTable())
        ) {
            return;
        }

        $model = $event->getModel();

        $model->setProperty('ptable', $parentDataDefinition->getName());
    }