Skip to content
Browse files

Add the root directory of the project in the include path to make the…

… override of propel's generator classes easier
  • Loading branch information...
1 parent ae65d87 commit fd39223c7fae85bd5fe61b72332bc98a8531f837 @maxailloud maxailloud committed with willdurand Jul 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 PropelBundle.php
View
2 PropelBundle.php
@@ -20,7 +20,7 @@ public function boot()
require_once $this->container->getParameter('propel.path').'/runtime/lib/Propel.php';
if (0 === strncasecmp(PHP_SAPI, 'cli', 3)) {
- set_include_path($this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
+ set_include_path($this->container->getParameter('kernel.root_dir').'/..'.PATH_SEPARATOR.$this->container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path());
}
if (!\Propel::isInit()) {

0 comments on commit fd39223

Please sign in to comment.
Something went wrong with that request. Please try again.