Hi All, Answering my questions . I've increased "memory_limit" to 128M in php.ini (*) and every things looks fine ! :-)
(*) you need to know which php.ini is used by your console , you could find it by run $ php check_configuration.php Also If we have check memory_limit then probebly would save time for the next one ! About Propel and xml configuration , Yes we could use schema.xml inestead of schema.yml , you need just drop your schema.xml to config folder and remove your schema.yml file . But I will not do that ! ;-) Cheers, Sid p.s. I found my answer from symfony-es<http://groups.google.es/group/symfony-es/browse_thread/thread/8209c28009753b24> On Sat, Oct 17, 2009 at 9:47 PM, Sid <[email protected]> wrote: > Hi All, > I am very new in Symfony ! :-) and this is my first post. > > I am getting Fetal error after running propel:build-model command in > day3 of jobeet tutorial ! > I also tried SVN (http://svn.jobeet.org/propel/tags/release_day_03) > but result is same . > > my console output : > > s...@sid-t60:~/ws/php/jobeet$ ./symfony propel:build-model > >> schema converting "/home/sid/ws/php/jobeet/config/schema.yml" to XML > >> schema putting /home/sid/ws/php/jobeet/config/generated-schema.xml > >> propel Running "om" phing task > Buildfile: /home/sid/ws/php/jobeet/lib/vendor/symfony/lib/plugins/ > sfPropelPlugin/lib/vendor/propel-generator/build.xml > [resolvepath] Resolved /home/sid/ws/php/jobeet/config to /home/sid/ws/ > php/jobeet/config > > propel-project-builder > check-project-or-dir-set: > > > propel-project-builder > check-project-set: > > > propel-project-builder > set-project-dir: > > > propel-project-builder > check-buildprops-exists: > > > propel-project-builder > check-buildprops-for-propel-gen: > > > propel-project-builder > check-buildprops: > > > propel-project-builder > configure: > > [echo] Loading project-specific props from /home/sid/ws/php/ > jobeet/config/propel.ini > [property] Loading /home/sid/ws/php/jobeet/config/propel.ini > > propel-project-builder > om: > > [phing] Calling Buildfile '/home/sid/ws/php/jobeet/lib/vendor/ > symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build- > propel.xml' with target 'om' > [property] Loading /home/sid/ws/php/jobeet/lib/vendor/symfony/lib/ > plugins/sfPropelPlugin/lib/vendor/propel-generator/./ > default.properties > > propel > check-run-only-on-schema-change: > > > propel > om-check: > > > propel > mysqli-check: > > > propel > om: > > [echo] +------------------------------------------+ > [echo] | | > [echo] | Generating Peer-based Object Model for | > [echo] | YOUR Propel project! | > [echo] | | > [echo] +------------------------------------------+ > [phingcall] Calling Buildfile '/home/sid/ws/php/jobeet/lib/vendor/ > symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build- > propel.xml' with target 'om-template' > [property] Loading /home/sid/ws/php/jobeet/lib/vendor/symfony/lib/ > plugins/sfPropelPlugin/lib/vendor/propel-generator/./ > default.properties > > propel > om-template: > > [propel-om] Processing: generated-schema.xml > [propel-om] Processing Datamodel : JoinedDataModel > [propel-om] - processing database : propel > [propel-om] + jobeet_category > [propel-om] -> BaseJobeetCategoryPeer [builder: SfPeerBuilder] > > Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to > allocate 30720 bytes) in /home/sid/ws/php/jobeet/lib/vendor/symfony/ > lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/ > engine/builder/om/php5/PHP5ObjectBuilder.php on line 684 > > Call Stack: > 0.0003 106576 1. {main}() /home/sid/ws/php/jobeet/symfony:0 > 0.0062 513944 2. include('/home/sid/ws/php/jobeet/lib/vendor/ > symfony/lib/command/cli.php') /home/sid/ws/php/jobeet/symfony:14 > 0.1479 8440552 3. sfSymfonyCommandApplication->run() /home/ > sid/ws/php/jobeet/lib/vendor/symfony/lib/command/cli.php:20 > 0.1541 8739776 4. sfTask->runFromCLI() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/command/ > sfSymfonyCommandApplication.class.php:76 > 0.1542 8739776 5. sfBaseTask->doRun() /home/sid/ws/php/jobeet/ > lib/vendor/symfony/lib/task/sfTask.class.php:77 > 0.2725 8897112 6. sfPropelBuildModelTask->execute() /home/sid/ > ws/php/jobeet/lib/vendor/symfony/lib/task/sfBaseTask.class.php:63 > 0.3014 9321376 7. sfPropelBaseTask->callPhing() /home/sid/ws/ > php/jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/ > sfPropelBuildModelTask.class.php:62 > 0.3768 16224088 8. sfPhing->runBuild() /home/sid/ws/php/jobeet/ > lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/ > sfPropelBaseTask.class.php:293 > 0.3768 16225800 9. Phing->runBuild() /home/sid/ws/php/jobeet/ > lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/ > sfPhing.class.php:33 > 0.4920 24039464 10. Project->executeTargets() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Phing.php:541 > 0.4920 24039464 11. Project->executeTarget() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Project.php:675 > 0.5067 24145608 12. Target->performTasks() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Project.php:702 > 0.5068 24145608 13. Target->main() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/Target.php: > 263 > 0.5068 24145608 14. Task->perform() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/Target.php: > 240 > 0.5079 24166144 15. PhingTask->main() /home/sid/ws/php/jobeet/ > lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Task.php:253 > 0.5079 24166144 16. PhingTask->processFile() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > tasks/system/PhingTask.php:150 > 0.6461 29718704 17. Project->executeTarget() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > tasks/system/PhingTask.php:275 > 0.6489 29723192 18. Target->performTasks() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Project.php:702 > 0.6490 29723192 19. Target->main() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/Target.php: > 263 > 0.6511 29723384 20. Task->perform() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/Target.php: > 240 > 0.6518 29727248 21. PhingCallTask->main() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Task.php:253 > 0.6519 29727248 22. PhingTask->main() /home/sid/ws/php/jobeet/ > lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/tasks/ > system/PhingCallTask.php:158 > 0.6519 29727248 23. PhingTask->processFile() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > tasks/system/PhingTask.php:150 > 0.7436 30482080 24. Project->executeTarget() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > tasks/system/PhingTask.php:275 > 0.7442 30486904 25. Target->performTasks() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Project.php:702 > 0.7443 30486904 26. Target->main() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/Target.php: > 263 > 0.7443 30486904 27. Task->perform() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/Target.php: > 240 > 0.7500 30547496 28. PropelOMTask->main() /home/sid/ws/php/ > jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Task.php:253 > 0.8152 33128472 29. GeneratorConfig->getConfiguredBuilder() / > home/sid/ws/php/jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/ > lib/vendor/propel-generator/classes/propel/phing/PropelOMTask.php:128 > 0.8152 33128472 30. GeneratorConfig->getBuilderClassname() / > home/sid/ws/php/jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/ > lib/vendor/propel-generator/classes/propel/engine/GeneratorConfig.php: > 194 > 0.8152 33128472 31. GeneratorConfig->getClassname() /home/sid/ > ws/php/jobeet/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/ > propel-generator/classes/propel/engine/GeneratorConfig.php:145 > 0.8152 33128472 32. Phing::import() /home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/ > classes/propel/engine/GeneratorConfig.php:131 > 0.8152 33128616 33. Phing::__import() /home/sid/ws/php/jobeet/ > lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing/ > Phing.php:964 > 0.8162 33267488 34. include_once('/home/sid/ws/php/jobeet/lib/ > vendor/symfony/lib/plugins/sfPropelPlugin/lib/builder/ > SfObjectBuilder.php') /home/sid/ws/php/jobeet/lib/vendor/symfony/lib/ > plugins/sfPropelPlugin/lib/vendor/phing/Phing.php:1006 > > One more question : is it possible to write database schema in XML for > Propel and run it inside of symfony or with propel-gen script ? > Thank you ! > > Rgds, > Sid > p.s. my development environment : Ubuntu8.04 , Apache2, PHP5.2.4 > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
