[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-17 Thread Jonathan Wage
We recently changed the base class name from generated to base to match
all the other base directories. In propel they are all named base for forms,
filters, etc.

- Jon

On Mon, Nov 17, 2008 at 12:27 AM, bstoppel [EMAIL PROTECTED]wrote:


 I had the same problem with a different Base* class. There were two
 directories with Base* class definitions:

 'project'/lib/model/doctrine/base
 'project'/lib/model/doctrine/generated

 I had to delete the generated directory. Once everything built fine.

 Brett

 On Nov 4, 10:07 am, Jonathan Wage [EMAIL PROTECTED] wrote:
  Same problem. You have 2 copies of the same class somewhere. Grep your
 code
  and find where the 2 class definitions for BasesfGuardGroup are.
 
  - Jon
 
  On Mon, Nov 3, 2008 at 2:46 PM, Reynier Perez Mira [EMAIL PROTECTED]
 wrote:
 
 
 
 
 
Hmm. Because you have 2 classes with the same name defined :)
Search your code and find out where and why.
 
   OK, I find but without success and for that  I start from zero and
 delete
   every generated class. I try again using this task:
 
   D:\Development\WWW\gestion.localsymfony doctrine-build-all-reload
 backend
doctrine  Are you sure you wish to drop your databases? (y/n)
doctrine  Successfully dropped database f...n propel named
   uci_recursos
doctrine  Successfully created database f...n propel named
   uci_recursos
doctrine  Generated models successfully
 
   And I get another error but with sfGuardDoctrine (I think)
 
   Fatal error: Cannot redeclare class BasesfGuardGroup in
  
 D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php
   on line 35
 
   PHP Fatal error:  Cannot redeclare class BasesfGuardGroup in
  
 D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php
   on line 35
 
   Ing. Reynier Pérez Mira
   Dirección Técnica IP
 
  --
  Jonathan H. Wage
  Open Source Software Developer 
 Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://
 www.symfony-project.org

 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-16 Thread bstoppel

I had the same problem with a different Base* class. There were two
directories with Base* class definitions:

'project'/lib/model/doctrine/base
'project'/lib/model/doctrine/generated

I had to delete the generated directory. Once everything built fine.

Brett

On Nov 4, 10:07 am, Jonathan Wage [EMAIL PROTECTED] wrote:
 Same problem. You have 2 copies of the same class somewhere. Grep your code
 and find where the 2 class definitions for BasesfGuardGroup are.

 - Jon

 On Mon, Nov 3, 2008 at 2:46 PM, Reynier Perez Mira [EMAIL PROTECTED] wrote:





   Hmm. Because you have 2 classes with the same name defined :)
   Search your code and find out where and why.

  OK, I find but without success and for that  I start from zero and delete
  every generated class. I try again using this task:

  D:\Development\WWW\gestion.localsymfony doctrine-build-all-reload backend
   doctrine  Are you sure you wish to drop your databases? (y/n)
   doctrine  Successfully dropped database f...n propel named
  uci_recursos
   doctrine  Successfully created database f...n propel named
  uci_recursos
   doctrine  Generated models successfully

  And I get another error but with sfGuardDoctrine (I think)

  Fatal error: Cannot redeclare class BasesfGuardGroup in
  D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php
  on line 35

  PHP Fatal error:  Cannot redeclare class BasesfGuardGroup in
  D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php
  on line 35

  Ing. Reynier Pérez Mira
  Dirección Técnica IP

 --
 Jonathan H. Wage
 Open Source Software Developer  
 Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://www.symfony-project.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Jonathan Wage
You need to be using the doctrine version of the plugin,
sfDoctrineGuardPlugin. Currently you can only get it from SVN.

- Jon

On Mon, Nov 3, 2008 at 10:54 AM, Reynier Perez Mira [EMAIL PROTECTED] wrote:


 Hi every:
 I'm trying to migrate one of my developments to sfDoctrine Plugin but I
 have a problem: I can not use sfGuard Plugin with sfDoctrine. I get this
 error when I try to access to the system:

 [PropelException]
 No connection params set for propel
 stack trace
* at ()
  in
 SF_SYMFONY_LIB_DIR\plugins\sfPropelPlugin\lib\vendor\propel\Propel.php line
 476 ...
 473.
 474. $dsn =
 isset(self::$configuration['datasources'][$name]['connection']) ?
 self::$configuration['datasources'][$name]['connection'] : null;
 475. if ($dsn === null) {
 476. throw new PropelException(No connection
 params set for  . $name);
 477. }
 478.
 479. include_once 'creole/Creole.php';
* at Propel::getConnection('propel')
  in
 SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om\BasesfGuardUserPeer.php line
 289 ...

 Can any help me or teach me here? I find in the Symfony Project Plugins
 site but I didn't found anything.

 Cheers and thanks in advance
 Ing. Reynier Pérez Mira
 Dirección Técnica IP


 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira

 You need to be using the doctrine version of the plugin, 
 sfDoctrineGuardPlugin.
 Currently you can only get it from SVN.

From this addres: 
http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/trunk/? 

Ing. Reynier Pérez Mira
Dirección Técnica IP 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Jonathan Wage
Yes, if you are using symfony 1.2

A branch exists for 1.0 and 1.1 as well.

- Jon

On Mon, Nov 3, 2008 at 10:58 AM, Reynier Perez Mira [EMAIL PROTECTED] wrote:


  You need to be using the doctrine version of the plugin,
 sfDoctrineGuardPlugin.
  Currently you can only get it from SVN.

 From this addres:
 http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/trunk/?

 Ing. Reynier Pérez Mira
 Dirección Técnica IP

 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira

Ok, I made a 1.1 branch checkout, copy the plugin in the plugins folder and 
when I try to run the task symfony cache:clear I get this error:

symfony cache:clear

PHP Fatal error:  Cannot redeclare class sfGuardPromoteSuperAdminTask in 
D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAdminTask.class.php
 on line 69

Why?
Cheers and thanks again
Ing. Reynier Pérez Mira
Dirección Técnica IP 

 -Original Message-
 From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Jonathan Wage
 Sent: Monday, November 03, 2008 11:57 AM
 To: symfony-users@googlegroups.com
 Subject: [symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine
 
 Yes, if you are using symfony 1.2
 
 A branch exists for 1.0 and 1.1 as well.
 
 - Jon
 
 
 On Mon, Nov 3, 2008 at 10:58 AM, Reynier Perez Mira [EMAIL PROTECTED] wrote:
 
 
 
You need to be using the doctrine version of the plugin,
 sfDoctrineGuardPlugin.
Currently you can only get it from SVN.
 
 
   From this addres: http://svn.symfony-
 project.com/plugins/sfDoctrineGuardPlugin/trunk/?
 
 
   Ing. Reynier Pérez Mira
   Dirección Técnica IP
 
 
 
 
 
 
 
 --
 Jonathan H. Wage
 Open Source Software Developer  Evangelist
 http://www.jwage.com
 http://www.doctrine-project.org
 http://www.symfony-project.org
 
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira

 PHP Fatal error:  Cannot redeclare class sfGuardPromoteSuperAdminTask in
 D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAd
 minTask.class.php on line 69

Ok, I find a solution for my last problem. I delete the old sfGuardPlugin 
folder and everything is fine now. Now following the README instructions I get 
this other error:

Fatal error: Cannot redeclare class BaseComponente in 
D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php
 on line 16

D:\Development\WWW\gestion.localPHP Fatal error:  Cannot redeclare class 
BaseComponente in 
D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php
 on line 16

Why this?
Cheers
Ing. Reynier Pérez Mira
Dirección Técnica IP 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Jonathan Wage
Hmm. Because you have 2 classes with the same name defined :)

Search your code and find out where and why.

- Jon

On Mon, Nov 3, 2008 at 1:24 PM, Reynier Perez Mira [EMAIL PROTECTED] wrote:


  PHP Fatal error:  Cannot redeclare class sfGuardPromoteSuperAdminTask in
 
 D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAd
  minTask.class.php on line 69

 Ok, I find a solution for my last problem. I delete the old sfGuardPlugin
 folder and everything is fine now. Now following the README instructions I
 get this other error:

 Fatal error: Cannot redeclare class BaseComponente in
 D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php
 on line 16

 D:\Development\WWW\gestion.localPHP Fatal error:  Cannot redeclare class
 BaseComponente in
 D:\Development\WWW\gestion.local\lib\model\doctrine\generated\BaseComponente.class.php
 on line 16

 Why this?
 Cheers
 Ing. Reynier Pérez Mira
 Dirección Técnica IP

 



-- 
Jonathan H. Wage
Open Source Software Developer  Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira

 Hmm. Because you have 2 classes with the same name defined :)
 Search your code and find out where and why.

OK, I find but without success and for that  I start from zero and delete every 
generated class. I try again using this task:

D:\Development\WWW\gestion.localsymfony doctrine-build-all-reload backend
 doctrine  Are you sure you wish to drop your databases? (y/n)
 doctrine  Successfully dropped database f...n propel named uci_recursos
 doctrine  Successfully created database f...n propel named uci_recursos
 doctrine  Generated models successfully

And I get another error but with sfGuardDoctrine (I think)

Fatal error: Cannot redeclare class BasesfGuardGroup in 
D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php
 on line 35

PHP Fatal error:  Cannot redeclare class BasesfGuardGroup in 
D:\Development\WWW\gestion.local\lib\model\doctrine\sfDoctrineGuardPlugin\generated\BasesfGuardGroup.class.php
 on line 35

Ing. Reynier Pérez Mira
Dirección Técnica IP 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---