Carpe-Hora/ExtraPropertiesBehavior — Issue #1: Error message when generating model
Author: pokmot
Created: 2012-02-05 02:05:28+00:00
State: open

build.properties:
propel.builder.addBehaviors = true
propel.behavior.extra_properties.class = ${propel.project.dir}.behaviors.ExtraProperties.ExtraPropertiesBehavior

Propel is located in "/protected/class/propel-1.6". Behavior is located in "/protected/orm/behaviors/ExtraProperties/"

When generating the model I get (having added simply to the xml schema):

PHP Fatal error: Class 'Propel' not found in F:\www\holidays-breaks.com\newsite-1.4\protected\orm\behaviors\ExtraProperties\ExtraPropertiesBehaviorObjectBuilderModifier.php on line 596
PHP Stack trace:
PHP 1. {main}() C:\wamp\bin\php\phing\bin\phing.php:0
PHP 2. Phing::fire() C:\wamp\bin\php\phing\bin\phing.php:37
PHP 3. Phing::start() C:\wamp\bin\php\phing\phing\Phing.php:270
PHP 4. Phing->runBuild() C:\wamp\bin\php\phing\phing\Phing.php:170
PHP 5. Project->executeTargets() C:\wamp\bin\php\phing\phing\Phing.php:553
PHP 6. Project->executeTarget() C:\wamp\bin\php\phing\phing\Project.php:706
PHP 7. Target->performTasks() C:\wamp\bin\php\phing\phing\Project.php:733
PHP 8. Target->main() C:\wamp\bin\php\phing\phing\Target.php:300
PHP 9. Task->perform() C:\wamp\bin\php\phing\phing\Target.php:277
PHP 10. PhingTask->main() C:\wamp\bin\php\phing\phing\Task.php:253
PHP 11. PhingTask->processFile() C:\wamp\bin\php\phing\phing\tasks\system\PhingTask.php:150
PHP 12. Project->executeTarget() C:\wamp\bin\php\phing\phing\tasks\system\PhingTask.php:275
PHP 13. Target->performTasks() C:\wamp\bin\php\phing\phing\Project.php:733
PHP 14. Target->main() C:\wamp\bin\php\phing\phing\Target.php:300
PHP 15. Task->perform() C:\wamp\bin\php\phing\phing\Target.php:277
PHP 16. PhingCallTask->main() C:\wamp\bin\php\phing\phing\Task.php:253
PHP 17. PhingTask->main() C:\wamp\bin\php\phing\phing\tasks\system\PhingCallTask.php:158
PHP 18. PhingTask->processFile() C:\wamp\bin\php\phing\phing\tasks\system\PhingTask.php:150
PHP 19. Project->executeTarget() C:\wamp\bin\php\phing\phing\tasks\system\PhingTask.php:275
PHP 20. Target->performTasks() C:\wamp\bin\php\phing\phing\Project.php:733
PHP 21. Target->main() C:\wamp\bin\php\phing\phing\Target.php:300
PHP 22. Task->perform() C:\wamp\bin\php\phing\phing\Target.php:277
PHP 23. PhingCallTask->main() C:\wamp\bin\php\phing\phing\Task.php:253
PHP 24. PhingTask->main() C:\wamp\bin\php\phing\phing\tasks\system\PhingCallTask.php:158
PHP 25. PhingTask->processFile() C:\wamp\bin\php\phing\phing\tasks\system\PhingTask.php:150
PHP 26. Project->executeTarget() C:\wamp\bin\php\phing\phing\tasks\system\PhingTask.php:275
PHP 27. Target->performTasks() C:\wamp\bin\php\phing\phing\Project.php:733
PHP 28. Target->main() C:\wamp\bin\php\phing\phing\Target.php:300
PHP 29. Task->perform() C:\wamp\bin\php\phing\phing\Target.php:277
PHP 30. PropelOMTask->main() C:\wamp\bin\php\phing\phing\Task.php:253
PHP 31. PropelOMTask->build() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\task\PropelOMTask.php:139
PHP 32. OMBuilder->build() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\task\PropelOMTask.php:81
PHP 33. PHP5ObjectBuilder->addClassBody() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\builder\om\OMBuilder.php:51
PHP 34. PHP5ObjectBuilder->addMagicCall() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\builder\om\PHP5ObjectBuilder.php:300
PHP 35. ObjectBuilder->applyBehaviorModifier() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\builder\om\PHP5ObjectBuilder.php:5221
PHP 36. OMBuilder->applyBehaviorModifierBase() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\builder\om\ObjectBuilder.php:194
PHP 37. ExtraPropertiesBehaviorObjectBuilderModifier->objectCall() F:\www\holidays-breaks.com\newsite-1.4\protected\class\propel-1.6\generator\lib\builder\om\OMBuilder.php:514