Search code examples
symfonypropel

Propel - Symfony2: propel.path must be defined. DependencyInjection\Exception


Running this commad on CLI:

php app/console propel:build

got

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] The parameter "propel.path" must be defined.

In app/config/config.yml I've already:

    propel:
        path:       "%kernel.root_dir%/../vendor/propel"
        phing_path: "%kernel.root_dir%/../vendor/phing"
        logging:    %kernel.debug%
        ...

I'm following the PropelBundle installation instruction in Working with Symfony2 and installed via composer.

System Info:

Apache/2.2.22 (Win64) PHP/5.3.13 
"name": "phing/phing",
            "version": "2.4.12",
"name": "propel/propel-bundle",
            "version": "1.1.x-dev",
"name": "propel/propel1",
            "version": "dev-master",
"name": "sensio/generator-bundle",
            "version": "2.1.x-dev",
"name": "symfony/symfony",
            "version": "2.1.x-dev",

Wamp server Version 2.2

Win7 64

Any help will be Very appreciated!


Solution

  • Solved

    The Cache was the problem. Before posting this question I tried to clear it with:

    php app/console cache:clear

    But app console wont clear cause his Container is made with the same cache broken parameters. So (two hours and a headache later) I simply deleted manually all the stuff in app/cache/dev and now all works fine. Big headache for a silly thing.

    Thanx prodigitalson for the help.

    Hope this post will help someone.