How do I…

Here are some solutions to common problems.

  • Existing Databases
    Examples of how to build an XML schema from existing db structure, how to dump data to XML, how to import it into a new database, etc.
  • Customizing Build
    Examples of how to customize Propel's output directories to support using Propel in multi-project environments.
  • Standalone Project Directories
    How to build projects that are not sitting inside the "generator/projects/" folder with non-PEAR versions.
  • Transactions
    Some tips on how to use transactions with Propel.
  • Full Query Logging
    How to use Creole's DebugConnection to log queries as they are actually sent to the database (instead of the unfinished queries that Propel logs).
  • Pre-Epoch Dates
    How to use pre-1970 dates with Propel.
  • Additional SQL Files
    How to add additional SQL files that will be run when you use the insert-sql Phing target.
  • Multi-Component Data Model
    How to use Propel in an environment where you may have many components / modules that each have their own object model. A Mojavi-based site would be an example of such an environment. (See Customizing Build for examples on how to setup build properties to support such a system.)
    Please note that this is an experimental feature available in SVN versions only.
  • Propel Build Process With Eclipse
    How to setup your Eclipse workbench to run the Propel build process with Ant.
  • Improved Performance with Byte Code Cache
    Propel generates a lot of large class files. These can create a significant parse time performance hit. A byte code cache can almost eliminate the parse time cost.

External Resources