Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Discussion relating to version 1.2.x stable

Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby scirocco » Tue Dec 09, 2008 2:38 pm

Hi!

"php symfony doctrine:build-sql" drops this:
There are no tasks defined in the "doctrine" namespace.

Impossible to learn symfony 1.2...
scirocco
Junior Member
 
Posts: 17
Joined: Sat Dec 06, 2008 11:30 am
Location: Budapest, Hungary

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby halfer » Tue Dec 09, 2008 3:27 pm

Not impossible. You just need to learn how to use the search feature in this forum :roll:
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby cscsaba » Tue Dec 09, 2008 11:32 pm

Hello

The same happened to me when i use this below:
symfony doctrine:build-all-reload

All in all the problem lies at the here in the ProjecConfiguration.class.php

$this->enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin'));

Because this funtion mainly about the Exceptions! so you must
replace first parameter 'sfDoctrinePlugin' to 'sfPropelPlugin'.

All plugins will be loaded except the Propel.

Csaba
Last edited by cscsaba on Wed Dec 10, 2008 12:04 am, edited 1 time in total.
cscsaba
Junior Member
 
Posts: 9
Joined: Tue Dec 09, 2008 11:25 pm
Location: Hungary

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby Lucas0721 » Thu Apr 02, 2009 6:05 pm

WELL I HAVE THE SOME PROBLEM BUT I TRIED THE SOLUTIONS WITH SYMFONY 1.1.7 BUT NOT WORK

I HAVE MODIFIED THE FILE projectConfiguration.class.php but then I get an Error...

$this->enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin')); this funtion do not is defined in porjectConfiguration.class.php.

I do not what I do?
Lucas0721
Junior Member
 
Posts: 9
Joined: Fri Feb 27, 2009 7:02 am
Location: Cucuta

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby cscsaba » Thu Apr 02, 2009 6:57 pm

Hello Lucas,

Are you sure Doctrine is included in below 1.2 ?

Check the availability of Doctrine in 1.1.7

Csaba
cscsaba
Junior Member
 
Posts: 9
Joined: Tue Dec 09, 2008 11:25 pm
Location: Hungary

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby afilina » Tue Aug 11, 2009 3:56 am

Another way to point the php command to the right version:

>alias php=’/Applications/MAMP/bin/php5/bin/php’
afilina
Junior Member
 
Posts: 5
Joined: Tue Aug 11, 2009 3:55 am
Location: Montreal

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'

Postby accord2k8 » Tue Jun 29, 2010 11:44 pm

Hi,

I'm using symfony 1.4.5, and I'm following the Jobeet tutorial currently on Day 6.

I ran into the same error when trying to run "php symfony doctrine:data-load" in the terminal. The solution I found was quite simple, make sure that you are in the symfony project directory when running the command (mine was /home/myusername/sfprojects/jobeet/)

My ProjectConfiguration.class.php file was okay as it had "$this->enablePlugins('sfDoctrinePlugin');", and I was able to run doctrine:data-load in the earlier days of the tutorial. So I didn't have to touch that.

Hope this helps.

Ian
accord2k8
Junior Member
 
Posts: 7
Joined: Mon Jun 28, 2010 2:33 pm


Return to symfony 1.2

Who is online

Users browsing this forum: No registered users and 1 guest