[symfony-users] Doctrine Form filter // getRelatedModelName

2010-09-16 Thread ziclo
Hello, In my form filters i want to display a select widget (multi choice). My problem is that the id appears but i want manager's name instead (relation one to many). I also want to display another field, manager's firstname. How can i do ? Here is my formfilter class : public function

[symfony-users] Symfony 2 - Stability rate of change

2010-09-16 Thread Donald Tyler
Hi everyone, I've been following the development of Symfony 2 since it was announced, and I would like to try it out with a real project I'm working on. It seems to be coming along very nicely, and I'd really like to try building something with it. Now, I know that it's not production ready, and

[symfony-users] automated response

2010-09-16 Thread Saad Tazi | Twist Image
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 25 septembre. L'accès à mes courriels pourrait être limité durant cette période. En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un courriel à l’adresse suivante:

[symfony-users] How to create custom Doctrine data validation?

2010-09-16 Thread David Park
Hi All, I'm having problems creating a custom Doctrine data validation rule. After reading the Doctrine More Validation documentation (http:// www.doctrine-project.org/documentation/manual/1_2/hu/component-overview:validator:more-validation), I created a protected validate() function in my model

[symfony-users] Can't set Attribute when set credentials

2010-09-16 Thread Pavel Pecheny
Anybody help! i cant $this-getUser()-setAttribute($param, $key); when i've set credentials for this user! without credentials works good! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

Re: [symfony-users] Can't set Attribute when set credentials

2010-09-16 Thread Julian
hi when i need add a credential an user. i use $this-getUser()-addCredential('credential'); before $this-getUser()-setAuthenticated(true); and works for me, if change the credentials the user need relogin 2010/9/16 Pavel Pecheny ppech...@gmail.com Anybody help! i cant

Re: [symfony-users] Can't set Attribute when set credentials

2010-09-16 Thread Pavel Pecheny
Thanks! i'll try 2010/9/16 Julian julian.reyes.escri...@gmail.com hi when i need add a credential an user. i use $this-getUser()-addCredential('credential'); before $this-getUser()-setAuthenticated(true); and works for me, if change the credentials the user need relogin 2010/9/16

[symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Dirk Conzelmann
Hi, i am having a user in the database user: admin password: admin The mysql table sf_guard_user contains the field password with the following content: 76d4f40a679eb11489c3cd40157c47a867f077ba After data-dump and data-load there is the following content inside:

Re: [symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Dirk Conzelmann
Ok now I found an explanation - the password is encrypted twice. Any idea how to prevent the double encryption? On 09/16/2010 04:11 PM, Dirk Conzelmann wrote: Hi, i am having a user in the database user: admin password: admin The mysql table sf_guard_user contains the field password with the

Re: [symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Julian
i have the same problem but when i dump a data i change manually the pass ^_^ 2010/9/16 Dirk Conzelmann i...@dirk-conzelmann.de Ok now I found an explanation - the password is encrypted twice. Any idea how to prevent the double encryption? On 09/16/2010 04:11 PM, Dirk Conzelmann wrote:

Re: [symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Gábor Fási
http://oldforum.symfony-project.org/index.php/m/83831/ On Thu, Sep 16, 2010 at 16:26, Dirk Conzelmann i...@dirk-conzelmann.de wrote: Ok now I found an explanation - the password is encrypted twice. Any idea how to prevent the double encryption? On 09/16/2010 04:11 PM, Dirk Conzelmann wrote:

Re: [symfony-users] Symfony2 virtualhost

2010-09-16 Thread Dirk Conzelmann
On 09/15/2010 10:35 AM, Fabien Potencier wrote: On 9/15/10 3:22 AM, Josh wrote: How do a setup a VirtualHost for Symfony2? There is no virtualhost examples anywhere, and it's vastly different from 1.x.. There is nothing special to do, just create a classic virtualhost. Don't want to use the

Re: [symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Julian
o.o that is an Solution ^_^ not like my solution T_T 2010/9/16 Gábor Fási maerl...@gmail.com http://oldforum.symfony-project.org/index.php/m/83831/ On Thu, Sep 16, 2010 at 16:26, Dirk Conzelmann i...@dirk-conzelmann.de wrote: Ok now I found an explanation - the password is encrypted

[symfony-users] Re: Doctrine Form filter // getRelatedModelName

2010-09-16 Thread ScherlOMatic
Hello! I think there is more than one solution for your problem. Try to overwrite the '_toString()' method in the model (TrackerManagerTable.class.php). Or create some own method and call it from whereever you want. Why are you implementing this logic in the filter class? BR On 16 Sep.,

[symfony-users] OrderBy and count problem

2010-09-16 Thread Reo
Hi, I want to order my users by the number of computer they got. (as i'm using the pager, i only need to return the query) I tryed : $q = $this-createQuery('a') -addSelect('a.*, COUNT(cp.id) as count') -leftJoin('a.Computers cp') -orderBy('count'); return

[symfony-users] Choices Grouping

2010-09-16 Thread Gerda Graciela
Hi!!! I have two tables: Qualification and Eligibility Category. I want to do it as Cookbook where 'Europe' and 'America' are on the table Qualification Category. 'France' = 'France', 'Spain' = 'Spain', 'Italy' = 'Italy' are on the table qualification. Can anyone help me?

[symfony-users] Why does sfPartialView need a new response class when caching is enabled?

2010-09-16 Thread Ben Lumley
Totally academic question here Encountered this bug/issue: http://trac.symfony-project.org/ticket/4185 The proposed solution works. But I don't understand why sfPartialView needs to set up a new response class when caching is enabled, which is the cause of the bug. Sure there's a really

[symfony-users] Re: Why does sfPartialView need a new response class when caching is enabled?

2010-09-16 Thread Ben Lumley
Tracked it down to: http://trac.symfony-project.org/changeset/7725 Commit msg is: fixed caching of partial and components (now with css, js, and slots support) (closes #2685) So its something to do with making CSS/JS/slots work with caching . On Sep 16, 6:00 pm, Ben Lumley

[symfony-users] Escaping quotes in doctrines form filter with text search

2010-09-16 Thread jdeveloper
Hi I tested to find text witch contained quotes with the symfonys generated form filters with doctrine and found out that the quotes are not escaped (I use mysql). I published a litle gist overriding addTextQuery in BaseFormFilterDoctrine; ?php /** * For now only works with Text filters and

[symfony-users] Symfony 2 - Stability rate of change

2010-09-16 Thread Donald
Hi everyone, I've been following the development of Symfony 2 since it was announced, and I would like to try it out with a real project I'm working on. It seems to be coming along very nicely, and I'd really like to try building something with it. Now, I know that it's not production ready, and

[symfony-users] functional tests and the user

2010-09-16 Thread mahadi
Hi folks, im trying to get user information in a functional test. Im using the sfDoctrineGuardPlugin and i want to get the users id. How can i access user information in a functional test? I tried already the following code, but it wont work as expected: with('user')-begin()-

[symfony-users] Embedded forms with file upload problem

2010-09-16 Thread Anton74
I'm struggling with the following problem: I'm using symfony 1.4.6 and have followed the The more with symfony book, chapter Advanced forms by Ryan Weaver, Fabien Potencier. [url]http://www.symfony-project.org/more-with-symfony/1_4/en/06- Advanced-Forms[/url] Everything works fine and the photos

[symfony-users] Re: Symfony 2 - Stability rate of change

2010-09-16 Thread Jeremy Mikola
Symfony's biggest change was likely in August (massive namespace/class renaming), and *crosses fingers* we shouldn't see anything on that scale again - but you'll certainly have no assurance of that. Fabien has recently been implementing new features quite regularly in his own github repository

[symfony-users] ahDoctrineEasyEmbeddedRelations question

2010-09-16 Thread deBaer
Hi! I'm totally new to symfony and doing my first project. It is a database of customers (Kunde) and ways to reach them (Kontaktweg, which would be E-Mail, Skype, ...). The two tables are linked by a third one that has the ids of both data sets and the payload (Inhalt, like

[symfony-users] [doctrine 1.2] dropping a record from a doctrine_collection

2010-09-16 Thread Michael Hodges
Hello all, I'm not having a luck looking this up, or with the description in the documentation. Hoping you can help. I have a function that creates a doctrine_collection. For reasons not explained here it is not feasible to limit the collection utilizing only DQL, so I thought to loop through

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations question

2010-09-16 Thread Daniel Lohse
My plugin doesn't work with many-to-many relations, I'm sorry. :( Daniel Sent from my iPhone4 On Sep 17, 2010, at 1:49 AM, deBaer deb...@gmail.com wrote: Hi! I'm totally new to symfony and doing my first project. It is a database of customers (Kunde) and ways to reach them (Kontaktweg,