From 8829b1d56a5eae2156e6c3a739f9a03c5827e20c Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Thu, 30 Jun 2022 21:35:29 +0200 Subject: [PATCH] Fixes for Propel 2.0.0-beta2 --- src/EventDispatcherBehavior.php | 5 +++++ {src/templates => templates}/objectAttributes.php | 0 {src/templates => templates}/objectDummyConstruct.php | 0 {src/templates => templates}/objectGetEventDispatcher.php | 0 {src/templates => templates}/objectHook.php | 0 {src/templates => templates}/objectSetEventDispatcher.php | 0 6 files changed, 5 insertions(+) rename {src/templates => templates}/objectAttributes.php (100%) rename {src/templates => templates}/objectDummyConstruct.php (100%) rename {src/templates => templates}/objectGetEventDispatcher.php (100%) rename {src/templates => templates}/objectHook.php (100%) rename {src/templates => templates}/objectSetEventDispatcher.php (100%) diff --git a/src/EventDispatcherBehavior.php b/src/EventDispatcherBehavior.php index 678c324..246404b 100644 --- a/src/EventDispatcherBehavior.php +++ b/src/EventDispatcherBehavior.php @@ -10,6 +10,11 @@ class EventDispatcherBehavior extends \Propel\Generator\Model\Behavior */ private $objectBuilderModifier; + public function __construct() + { + $this->dirname = __DIR__.'/'; + } + /** * {@inheritdoc} */ diff --git a/src/templates/objectAttributes.php b/templates/objectAttributes.php similarity index 100% rename from src/templates/objectAttributes.php rename to templates/objectAttributes.php diff --git a/src/templates/objectDummyConstruct.php b/templates/objectDummyConstruct.php similarity index 100% rename from src/templates/objectDummyConstruct.php rename to templates/objectDummyConstruct.php diff --git a/src/templates/objectGetEventDispatcher.php b/templates/objectGetEventDispatcher.php similarity index 100% rename from src/templates/objectGetEventDispatcher.php rename to templates/objectGetEventDispatcher.php diff --git a/src/templates/objectHook.php b/templates/objectHook.php similarity index 100% rename from src/templates/objectHook.php rename to templates/objectHook.php diff --git a/src/templates/objectSetEventDispatcher.php b/templates/objectSetEventDispatcher.php similarity index 100% rename from src/templates/objectSetEventDispatcher.php rename to templates/objectSetEventDispatcher.php