[symfony-users] Using Swift_Mailer in sf 1.4

2010-05-27 Thread NOOVEO - Christophe Brun
Ladies gentlemen, I'm stuck with some configuration issue (at least I guess it is one...). I sent mails with the sfDoctrineApplyPlugin when a user registers, the plugin uses ZendMail by default and things work as expected. In another module, I sue the default mailer for the application,

RE: [symfony-users] Exporting data to CSV (+Doctrine)

2010-04-28 Thread NOOVEO - Christophe Brun
Nope, listCsvReportSuccess.php, sorry for the typo. -Message d'origine- So your action is called listCsvReport but your template is called listCsvExportSuccess.php ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

RE: [symfony-users] manual ajax symfony 1.4

2010-04-27 Thread NOOVEO - Christophe Brun
Hola neoslink, I'm not sure to understand your question... The way symfony behaves regarding database operations is exactly the same, whether you activate your scripts with AJAX or a standard (synchronous) request. If you're looking for a tutorial about implementing AJAX itself in symfony,

RE: [symfony-users] doSelect array result converted to ArrayDecorator in template

2010-04-23 Thread NOOVEO - Christophe Brun
In your template, the real array in $var is protected (for output safety purposes) by an sfOutputEscaperArrayDecorator. You can still access to the original (array) data with $var-getRawValues(). -Message d'origine- De : symfony-users@googlegroups.com

[symfony-users] Routing + action : object lost in translation

2010-04-23 Thread NOOVEO - Christophe Brun
Ladies and gentlemen, I'm having again some trouble with the routing in symfony and I'm stuck. Any help would be appreciated. Here is the problem : 1/ My logs shows the following line, indicating that the url clicked is parsed : Apr 23 15:50:02 symfony [info] {sfPatternRouting} Match route

RE: [symfony-users] Routing + action : object lost in translation

2010-04-23 Thread NOOVEO - Christophe Brun
- Christophe Brun Envoyé : vendredi 23 avril 2010 18:00 À : symfony-users@googlegroups.com Objet : [symfony-users] Routing + action : object lost in translation Ladies and gentlemen, I'm having again some trouble with the routing in symfony and I'm stuck. Any help would be appreciated. Here

[symfony-users] Colum alias in an aggregate query / Doctrine

2010-04-17 Thread NOOVEO - Christophe Brun
After the Doctrine documentation, http://www.doctrine-project.org/documentation/manual/1_2/en/dql-doctrine -query-language:select-queries:aggregate-values I'm trying a query like this : $vp = Doctrine_Query::create() -select('MAX(v.rang) AS max_rang') -from('VitrineParagraphe v')

RE: [symfony-users] Colum alias in an aggregate query / Doctrine

2010-04-17 Thread NOOVEO - Christophe Brun
- Christophe Brun c.b...@nooveo.fr After the Doctrine documentation, http://www.doctrine-project.org/documentation/manual/1_2/en/dql-doctrine-query-language:select-queries:aggregate-values I'm trying a query like this : $vp = Doctrine_Query::create

RE: [symfony-users] Strange Routing Behaviour

2010-04-14 Thread NOOVEO - Christophe Brun
Hi Lea. My guess is that symfony's routing is not responsible for this behaviour. AMOF, if your browser directs you to index.php or frontend_dev.php and if these files are well configured with some code like the following :

[symfony-users] andWhereNotIn clause not working

2010-04-09 Thread NOOVEO - Christophe Brun
Hi everybody. Here are several Doctrine calls : These ones work (the request is compiled and processed with no errors) : $q = Doctrine_Query::create()-from('Livre')-where(infos_aliga like '%?%', 'something')-execute(); $q = Doctrine_Query::create()-from('Livre')-whereNotIn('id',

RE: [symfony-users] andWhereNotIn clause not working

2010-04-09 Thread NOOVEO - Christophe Brun
la part de NOOVEO - Christophe Brun Envoyé : vendredi 9 avril 2010 12:24 À : symfony-users@googlegroups.com Objet : [symfony-users] andWhereNotIn clause not working Hi everybody. Here are several Doctrine calls : These ones work (the request is compiled and processed with no errors) : $q

RE: [symfony-users] Re: Customizing Doctrine's messages

2010-04-08 Thread NOOVEO - Christophe Brun
, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: Hi everybody. When you save an object in your backend application, Doctrine gracefully flashes a message like 'the object has been successfully saved'. Same thing with newly created objects, deleted objects etc. I would like to change

[symfony-users] Customizing Doctrine's messages

2010-04-07 Thread NOOVEO - Christophe Brun
Hi everybody. When you save an object in your backend application, Doctrine gracefully flashes a message like 'the object has been successfully saved'. Same thing with newly created objects, deleted objects etc. I would like to change these messages (actually, my client is a french speaker

RE: [symfony-users] access object from validator

2010-04-06 Thread NOOVEO - Christophe Brun
Hi. I'm #far# from mastering Symfony but here are my two cents. I would say that validators are not intented to know anything else than the bunch of values to clean and validate, hence I don't see any way for them to know the form's object. But the form has access to all the values you need :

[symfony-users] return redirect() breaks the code ?

2010-03-30 Thread NOOVEO - Christophe Brun
I want to catch some exceptions in my actions and to display nice and informative messages for my users. class utilisateursActions extends autoUtilisateursActions { public function executeDelete(sfWebRequest $request) { try { // do stuff...

RE: [symfony-users] Re: Using subqueries under Doctrine

2010-03-17 Thread NOOVEO - Christophe Brun
/documentation/manual/1_1/en/dql-doctrine-query-language:subqueries http://groups.google.com/group/doctrine-user/browse_thread/thread/cfa13d4beebaccaf On 15 bře, 17:44, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I'm trying to create a query like this one : select commande_id, statut_commande_id

[symfony-users] Using subqueries under Doctrine

2010-03-15 Thread NOOVEO - Christophe Brun
I'm trying to create a query like this one : select commande_id, statut_commande_id, id from historique_commande h where h.id = (select max(j.id) from historique_commande j where j.commande_id = h.commande_id group by j.commande_id) having h.statut_commande_id = 1 ; This is to be used as a

[symfony-users] Routing problem with sfGuardUserProfile

2010-03-10 Thread NOOVEO - Christophe Brun
I'm trying to use sfDoctrineApplyPlugin, I have been asked to display 2 backend pages : one to handle administrators, the other one to handle other users. I have generated 2 modules on the backend side. In routing.yml, the 2 routes are identical : utilisateurs: class:

[symfony-users] How can I save null values with Doctrine

2010-03-08 Thread NOOVEO - Christophe Brun
My table has a varchar(13) field which can be null. schema.yml : myfield: { type: string(13), default: null } When I create a new object using the related form, the object is recorded in the database with an empty string, not with a null value. How can I force Doctrine to set a null

[symfony-users] Using a customized table_method on sfGuardUser

2010-03-01 Thread NOOVEO - Christophe Brun
I'm working on the backend side of a web application, with the sfDoctrineGuardPlugin. In sfGuardUser/config/generator.yml, I add the line : list: table_method: retrieveAdminsList and in the model : class sfGuardUserTable extends PluginsfGuardUserTable { public function

RE: [symfony-users] Re: Is there anyway to go to the next element in a Doctrine collection?

2010-02-19 Thread NOOVEO - Christophe Brun
I'm not sure since I'm still a beginner on symfony and doctrine, but if your variable is a Doctrine_Collection, I would try something like : $it = $amigos_miembro-getIterator(); while($it-next()) { do_stuff(); } -Message d'origine- De : symfony-users@googlegroups.com

[symfony-users] How can I configure a route for a module using a 2-columns key ?

2010-02-16 Thread NOOVEO - Christophe Brun
Basically, the related table is an association table : VitrineLivre: actAs: { Timestampable: ~ } columns: vitrine_paragraphe_id: { type: integer(4), primary: true } livre_id: { type: integer(4), primary: true } relations: Livre: type: one local: livre_id

[symfony-users] Filtering a list from the action

2010-02-15 Thread NOOVEO - Christophe Brun
I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function executeUseMyFilter(sfWebRequest $request) { $id =

RE: [symfony-users] Edit form with a plain text input + save action : incorrect routing under Apache

2010-02-12 Thread NOOVEO - Christophe Brun
...@googlegroups.com] De la part de NOOVEO - Christophe Brun Envoyé : mardi 9 février 2010 17:22 À : symfony-users@googlegroups.com Objet : [symfony-users] Edit form with a plain text input + save action : incorrect routing under Apache I'm working on the backend side of a web application. The backend has been

[symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread NOOVEO - Christophe Brun
I'm still working on a backend form of my app. The form has several input fields, one of them allows the user to type an identifier pointing to an object stored on an external database. Let's call this field ExternalId (string 25). Now, I have to add a button after the input field to allow the

RE: [symfony-users] Admin generator without CSS

2010-02-09 Thread NOOVEO - Christophe Brun
You should run the plugin:publish-assets task from your CLI to fix that De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Samuel Morhaim Envoyé : mardi 9 février 2010 16:21 À : symfony-users@googlegroups.com Objet :

[symfony-users] Edit form with a plain text input + save action : incorrect routing under Apache

2010-02-09 Thread NOOVEO - Christophe Brun
I'm working on the backend side of a web application. The backend has been generated via doctrine:generate-admin. I have a simple objet with a plain url attribute declared as : url: { type: string(128) } in schema.yml. On the edit page, if the user type any text not begining by 'http:/' and

[symfony-users] Embedded forms and embedde relations problem

2010-02-05 Thread NOOVEO - Christophe Brun
I'm trying to use embedded forms on such a schema as : News: actAs: { Timestampable: ~ } columns: titre: { type: string(125), notnull: true } texte: { type: string() } date_News: { type: date(25), notnull: true } actif: { type: boolean, notnull: true, default: true } Book: