This is what my ProjectConfiguration.class.php looks like. <?php require_once 'C:\\frameworks\\symfony-1.4.2\\lib\\autoload\\sfCoreAutoload.class.php'; sfCoreAutoload::register();
class ProjectConfiguration extends sfProjectConfiguration { public function setup() { $this->enablePlugins('sfDoctrinePlugin'); } } ====\ i've tried the path a few different ways such as: C:\\frameworks\\symfony-1.4.2\\lib/autoload/sfCoreAutoload.class.php and C:/frameworks/symfony-1.4.2/lib/autoload/sfCoreAutoload.class.php and C:\frameworks\symfony-1.4.2\lib\autoload\sfCoreAutoload.class.php all resulting in the same error. Also, In the 'Global include Path' I only have 'C:\frameworks\symfony-1.4.2' set. Is there something else that should be included there? Thanks. ________________________________ From: Eno <symb...@gmail.com> To: "symfony-users@googlegroups.com" <symfony-users@googlegroups.com> Sent: Thu, March 4, 2010 2:50:06 PM Subject: Re: [symfony-users] You must pass a valid path to a directory containing Doctrine models On Thu, 4 Mar 2010, Bill P. wrote: > I am trying to setup a new project using NetBeans and this tutorial: > http://wiki.netbeans.org/NB68symfony > > It is using propel, but I am setup with Doctrine. > Everything seems to be setup correctly, but when I am trying to insert-sql, I > get this error; > > You must pass a valid path to a directory containing Doctrine models > > and no table are created. > > What am I missing? Use the source Luke. Looking at the source for that task, I see it looks for models_path in your config: protected function execute($arguments = array(), $options = array()) { $this->logSection('doctrine', 'created tables successfully'); $databaseManager = new sfDatabaseManager($this->configuration); $config = $this->getCliConfig(); Doctrine_Core::loadModels($config['models_path'], Doctrine_Core::MODEL_LOADING_CONSERVATIVE); Doctrine_Core::createTablesFromArray(Doctrine_Core::getLoadedModels()); } Im guessing loadModels never gets a valid path. Furthermore the array of config values comes through getCliConfig() which in turn pulls it from the plugin config: public function getCliConfig() { return $this->configuration->getPluginConfiguration('sfDoctrinePlugin')->getCliConfig(); } So this probably should be in coming from your sfProjectConfiguration class. Do you have the Doctrine plugin enabled and Propel disabled in your project config? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en