views:

19

answers:

1

I am playing with the build settings in my build.properties file for propel (version 1.5.4) but don't get it right.

Example: Table News should have

  • class Model_News in ./Model/News.php
  • class Model_Base_News in ./Model/Base/News.php

My main problems:

  • propel adds the project name as a folder between Model and News.php like: /Model/project/News.php
  • propel adds the propel.classPrefix to the file, too. So propel.classPrefix = Model_ builds class Model_News inside /Model/project/Model_News.php

aaaaaaaaaaaahhhh :-(

A: 

I don't think you can customize the paths to this form by only using build.properties. You probably need to overload the OMBuilder::getClassFilePath() (used by PropelOMTask::build()) function in your own custom build classes. Unfortunately you cannot just override the OMBuilder class, but you must create subclasses for all *Builder classes.

Jan Fabry
Well that sucks. I'll just stick with doctrine and looking forward for doctrine 2.0 to have better performance.
sod