Add the root directory of the project in the include path to make the override of propel's generator classes easier

This commit is contained in:
Maxime AILLOUD 2011-07-27 12:17:54 +02:00 committed by William DURAND
parent ae65d873a6
commit fd39223c7f

View file

@ -20,7 +20,7 @@ class PropelBundle extends Bundle
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()) {