Re: [symfony-users] How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-25 Thread FlyLM [ML]
2010/1/25 Olivier LOYNET olivierloy...@gmail.com: Hi, I've two tables :  - Profile table  - Organism table with an embedded relation (1,1) The Profile table have Timestampable behaviour like this schema : Profile:  tableName: profile  actAs:    Timestampable:   ~  columns:    id:    

Re: [symfony-users] How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-25 Thread FlyLM [ML]
Hi, Perhaps it's not the best method, but you can use the method postUpdate of the Doctrine model class of Organism to update the Profile. Just the opposite in ur case, use the postUpdate method of the Profile model class to update Organism. -- You received this message because you are

[symfony-users] Re: Symfony 1.3, sfDoctrineGuardPlugin error

2009-10-30 Thread FlyLM [ML]
. Fabien 2009/10/30 FlyLM [ML] flylm...@gmail.com: Hi, I use admin generator to manage my sf_guard_user in my backend. The project is under Symfony 1.3 (trunk) and I use sfDoctrineGuardPLugin from the trunk too. When I save (edit) I get this error : Unknown method sfGuardUser

[symfony-users] Symfony 1.3, load data failed (override plugin schema)

2009-10-29 Thread FlyLM [ML]
Hello, I use Symfony 1.3 (with doctrine) and my application database schema overrides the database schema of the plugin sfDoctrineGuardPlugin. My sf_guard_user definition look like that : ** sfGuardUser: actAs:

[symfony-users] Re: Symfony 1.3, load data failed (override plugin schema)

2009-10-29 Thread FlyLM [ML]
I just try with an other computer, I've updated the working copy and the data-load works fine ^^ Sorry for the noise. Fabien 2009/10/29 FlyLM [ML] flylm...@gmail.com: Hello, I use Symfony 1.3 (with doctrine) and my application database schema overrides the database schema of the plugin

[symfony-users] Symfony 1.3, sfDoctrineGuardPlugin error

2009-10-29 Thread FlyLM [ML]
Hi, I use admin generator to manage my sf_guard_user in my backend. The project is under Symfony 1.3 (trunk) and I use sfDoctrineGuardPLugin from the trunk too. When I save (edit) I get this error : Unknown method sfGuardUser::reloadGroupsAndPermissions If I remove goups_list from the form

[symfony-users] Re: Uploads error with Doctrine

2009-06-15 Thread FlyLM [ML]
You have a solution here (hope that bug will be corrected in 1.2.8) : http://trac.symfony-project.org/ticket/5617 Fabien 2009/6/14 Sid Ferreira sid@gmail.com: Please, take a look on http://trac.symfony-project.org/ticket/6617 Thanks -- Sidney G B Ferreira Desenvolvedor Web

[symfony-users] Doctrine build SQL error

2009-06-03 Thread FlyLM [ML]
Hi, I've finished a project under Symfony / Doctrine. Developers have worked on Mac OS X and Windows. When I try to install the project on Linux (Gentoo, PHP 5.2.9), the task doctrine:build-sql fails with this error : Fatal error: Class 'I18N' not found in

[symfony-users] Re: Doctrine build SQL error

2009-06-03 Thread FlyLM [ML]
I've the same problem on a Debian Dedicated server :-( 2009/6/3 FlyLM [ML] flylm...@gmail.com: Hi, I've finished a project under Symfony / Doctrine. Developers have worked on Mac OS X and Windows. When I try to install the project on Linux (Gentoo, PHP 5.2.9), the task doctrine:build-sql

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-26 Thread FlyLM [ML]
); if( $isNew ) { // Set the group, here customer $group = Doctrine::getTable('sfGuardGroup')-findOneByName('customer'); $this-getObject()-link('groups', $group-getId()); } } [] } Fabien Best Regards, Campezzi On May 25, 12:53 pm, FlyLM [ML] flylm

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-25 Thread FlyLM [ML]
Hi, If you have always sfDoctrineGuardPlugin installed, take a look at this file line 84 (savegroupsList method) /lib/form/doctrine/sfDoctrineGuardPlugin/base/BasesGuardUserForm.class.php = $this-object-link('groups', array_values($link)); Fabien 2009/5/25 Campezzi campe...@gmail.com: Hi

[symfony-users] Re: Admin Generator, Timestampable and I18N update

2009-05-14 Thread FlyLM [ML]
2009/5/13 FlyLM [ML] flylm...@gmail.com: Hello, I use Admin Generator to allow Admin users to update the local part of an object. The shema's object is defined like below : ubCgu:    actAs:     Timestampable: ~     I18N:      fields: [content]      className: %CLASS%I18n    columns

[symfony-users] Admin Generator, Timestampable and I18N update

2009-05-13 Thread FlyLM [ML]
Hello, I use Admin Generator to allow Admin users to update the local part of an object. The shema's object is defined like below : ubCgu: actAs: Timestampable: ~ I18N: fields: [content] className: %CLASS%I18n columns: country_iso: { type:string(2),

[symfony-users] Customize Admin Generator

2009-05-12 Thread FlyLM [ML]
Hi, I've just try the admin generator and I don't find the way to do what I really want. - First, I would like to use a custom method to list my objects. I know I can use table_method directly in the configuration file, but I need to pass data to this function (data depends on authenticated

[symfony-users] Re: Customize Admin Generator

2009-05-12 Thread FlyLM [ML]
2009/5/12 FlyLM [ML] flylm...@gmail.com: Hi, I've just try the admin generator and I don't find the way to do what I really want. - First, I would like to use a custom method to list my objects. I know I can use table_method directly in the configuration file, but I need to pass data

[symfony-users] Re: Customize Admin Generator

2009-05-12 Thread FlyLM [ML]
data, so I didn't try. Extend actions methods works fine. Alecs On Tue, May 12, 2009 at 6:31 PM, FlyLM [ML] flylm...@gmail.com wrote: Hi, I've just try the admin generator and I don't find the way to do what I really want. - First, I would like to use a custom method to list my

[symfony-users] Re: myUser initialize, Doctrine strange issue.

2009-04-21 Thread FlyLM [ML]
2009/4/20 FlyLM [ML] flylm...@gmail.com Hi, I want to set the real culture of my user at initialization. I've a very strange issue with Doctrine and culture. The application have the default culture set to en. For the example, I put this in an action method : [...] $this-getUser-setCulture

[symfony-users] Doctrine I18n - Problem to get a localized value

2009-04-20 Thread FlyLM [ML]
Hi, I have a problem to get the translation of a column using I18n doctrine behavior. My yaml schema is : ubRoom: actAs: I18N: fields: [label] className: %CLASS%I18n columns: id: { type:integer(2), primary:true, autoincrement: true } country_iso: { type:string(2),

[symfony-users] Re: Doctrine I18n - Problem to get a localized value

2009-04-20 Thread FlyLM [ML]
create a link between this associative Translation array and the property or the value return by the method of the objet. Bertrand Le 20 avr. 09 à 17:01, FlyLM [ML] a écrit : When I run the request without specify the current culture, I can't get any data with a -getLabel() ou -label

[symfony-users] Re: Doctrine I18n - Problem to get a localized value

2009-04-20 Thread FlyLM [ML]
value of the column. 2009/4/20 FlyLM [ML] flylm...@gmail.com 2009/4/20 Bertrand Zuchuat bertrand.zuch...@rero.ch Hello, Add -leftJoin('r.Translation t') in your query. But I can't access the localized value with getLabel method or label object property. I need to use the Translation

[symfony-users] myUser initialize, Doctrine strange issue.

2009-04-20 Thread FlyLM [ML]
Hi, I want to set the real culture of my user at initialization. I've a very strange issue with Doctrine and culture. The application have the default culture set to en. For the example, I put this in an action method : [...] $this-getUser-setCulture('fr'); $this-test =

[symfony-users] Re: Something I don't understand with form default values

2009-04-20 Thread FlyLM [ML]
2009/4/20 Adrien Mogenet adrien.moge...@gmail.com Hi all, there is something - strange ? - that I don't understand. Let say I have a field updated_by within the class user. In the class form : public function configure() { .. $this-setDefault('updated_by', '42'); ... } Try

[symfony-users] Re: 404 http status

2009-04-09 Thread FlyLM [ML]
2009/4/9 Pierre Bastoul pie...@o10c.fr: Hi, I don't understand why the default symfony 404 error page return a 200 OK http status and not the good 404 status. I am running symfony 1.2.5 on apache2. I get a 404 code with the default symfony 404 page on the same version of sf.

[symfony-users] Re: 404 http status

2009-04-09 Thread FlyLM [ML]
? 2009/4/9 FlyLM [ML] flylm...@gmail.com 2009/4/9 Pierre Bastoul pie...@o10c.fr: Hi, I don't understand why the default symfony 404 error page return a 200 OK http status and not the good 404 status. I am running symfony 1.2.5 on apache2. I get a 404 code with the default symfony 404 page

[symfony-users] Re: Doctrine I18N, One-to-One relations

2009-04-09 Thread FlyLM [ML]
advises about this ? Fabien - Jon On Thu, Apr 9, 2009 at 7:44 AM, FlyLM [ML] flylm...@gmail.com wrote: 2009/4/8 FlyLM [ML] flylm...@gmail.com: 2009/4/8 FlyLM [ML] flylm...@gmail.com: Hello, I have started my first real project with Symfony and I've some problems and questions. 1) I

[symfony-users] Doctrine I18N, One-to-One relations

2009-04-08 Thread FlyLM [ML]
Hello, I have started my first real project with Symfony and I've some problems and questions. 1) I use Doctrine as ORM and I18N Behavior in my schema.yml file to declare localized fields. Localized tables were generated with a columns named lang. I would like to have a relation between this