This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.2 » Doctrine issue: 'There are no tasks defined in the "doctrine" namespace'
Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #67179] Tue, 09 December 2008 13:38 Go to next message
scirocco  is currently offline scirocco
Messages: 17
Registered: December 2008
Location: Budapest, Hungary
Junior Member

Hi!

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

Impossible to learn symfony 1.2...
Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #67183 is a reply to message #67179 ] Tue, 09 December 2008 14:27 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Not impossible. You just need to learn how to use the search feature in this forum Rolling Eyes


Remember Palestine
Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #67231 is a reply to message #67179 ] Tue, 09 December 2008 22:32 Go to previous messageGo to next message
cscsaba  is currently offline cscsaba
Messages: 9
Registered: December 2008
Location: Hungary
Junior Member

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

[Updated on: Tue, 09 December 2008 23:04]

Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #76169 is a reply to message #67231 ] Thu, 02 April 2009 18:05 Go to previous messageGo to next message
Lucas0721  is currently offline Lucas0721
Messages: 9
Registered: February 2009
Location: Cucuta
Junior Member
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?
Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #76174 is a reply to message #76169 ] Thu, 02 April 2009 18:57 Go to previous messageGo to next message
cscsaba  is currently offline cscsaba
Messages: 9
Registered: December 2008
Location: Hungary
Junior Member

Hello Lucas,

Are you sure Doctrine is included in below 1.2 ?

Check the availability of Doctrine in 1.1.7

Csaba


Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #83540 is a reply to message #67179 ] Tue, 11 August 2009 03:56 Go to previous messageGo to next message
afilina  is currently offline afilina
Messages: 2
Registered: August 2009
Location: Montreal
Junior Member
Another way to point the php command to the right version:

>alias php=’/Applications/MAMP/bin/php5/bin/php’
Re: Doctrine issue: 'There are no tasks defined in the "doctrine" namespace' [message #101796 is a reply to message #67179 ] Tue, 29 June 2010 23:44 Go to previous message
accord2k8  is currently offline accord2k8
Messages: 2
Registered: June 2010
Junior Member
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

Previous Topic:getComponent method in Batch File (Custom tasks)
Next Topic:How to make a change on the database?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software