Dans-Mac-mini:atom dof$ php symfony propel:build-forms
>> propel generating form classes
Unable to find the model dir name (model) in the package .
Dans-Mac-mini:atom-2.2.0 dof$ php symfony propel:build-forms
>> propel generating form classes
PHP Warning: constant(): Couldn't find constant QubitAclGroupI18n::PEER in /private/tmp/atom-2.2.0/vendor/symfony/lib/plugins/sfPropelPlugin/lib/generator/sfPropelFormGenerator.class.php on line 90
PHP Stack trace:
PHP 1. {main}() /private/tmp/atom-2.2.0/symfony:0
PHP 2. include() /private/tmp/atom-2.2.0/symfony:14
PHP 3. sfSymfonyCommandApplication->run() /private/tmp/atom-2.2.0/vendor/symfony/lib/command/cli.php:20
PHP 4. sfTask->runFromCLI() /private/tmp/atom-2.2.0/vendor/symfony/lib/command/sfSymfonyCommandApplication.class.php:76
PHP 5. sfBaseTask->doRun() /private/tmp/atom-2.2.0/vendor/symfony/lib/task/sfTask.class.php:97
PHP 6. sfPropelBuildFormsTask->execute() /private/tmp/atom-2.2.0/vendor/symfony/lib/task/sfBaseTask.class.php:68
PHP 7. sfGeneratorManager->generate() /private/tmp/atom-2.2.0/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildFormsTask.class.php:72
PHP 8. sfPropelFormGenerator->generate() /private/tmp/atom-2.2.0/vendor/symfony/lib/generator/sfGeneratorManager.class.php:113
PHP 9. constant() /private/tmp/atom-2.2.0/vendor/symfony/lib/plugins/sfPropelPlugin/lib/generator/sfPropelFormGenerator.class.php:90
Hi Dan,It seems that our project stopped working with Propel's form generator, we should probably fix that at some point.
We haven't noticed because we don't use its form generator at all, instead we build our own forms inside the controllers, e.g. check how StaticPageEditAction builds its own form with the help of DefaultEditAction. You can try to mimic that once you start working on the controller layer.
So try to ignore that step where you run `propel:build-forms`, it's not needed. But you definitely need `propel:build-model` and `propel:build-sql`.
If you are in qa/2.3.x, you are going to run in the following error when running `tools:purge --demo` after building the model classes: Unknown record property "events" on "QubitInformationObject". That's a known bug (see https://projects.artefactual.com/issues/8784). The following illustrates how to solve it:$ php symfony propel:build-model$ php symfony tools:purge --demoUnknown record property "events" on "QubitInformationObject"$ git status -s lib/model/om/BaseInformationObject.phpM lib/model/om/BaseInformationObject.php$ git checkout -- lib/model/om/BaseInformationObject.php$ php symfony tools:purge --demoPurge complete!
We are hoping to fix that before AtoM 2.3 is released.Let us know how it goes and don't hesitate to ask more questions.