[symfony-users] Re: Propel route problem

2009-10-09 Thread HAUSa
Can someone help me with this please? It's really becoming an obstacle in my development process now... :( On 8 okt, 21:01, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I have this route: user_activate:   url:     /user/activate/:id   class:   sfPropelRoute   options: { model:

[symfony-users] Re: About embed forms

2009-10-09 Thread elkrema
Hi Dennis, thank you for your comments. About your problem adding a Children to the Parent Object, i don't understand it very well. I just take a look to your link about but i think it's more or less like im doing? Adding some embeds , right? Can you explain me more? Thank you. On 7 oct,

[symfony-users] Re: Propel route problem

2009-10-09 Thread NairuS
Hello, 2009/10/9 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com Can someone help me with this please? It's really becoming an obstacle in my development process now... :( On 8 okt, 21:01, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I have this route: user_activate:

[symfony-users] Re: Propel route problem

2009-10-09 Thread HAUSa
With that, I get this message: form id=form_user_activate action=?php echo url_for ('@user_activate', $user) ? method=post enctype=multipart/form- data The /user/activate/:id route has some missing mandatory parameters (:id). I get this error not when I submit the form, but when I go to /

[symfony-users] How to Add 2 select lists to sfDoctrineGuardAuthPermission Form

2009-10-09 Thread Alias Carter
Hello all, I m new in symfony, i want to overwride the methode configure() of the classe sfGuardPermissionForm in /lib/form/doctrine/ sfDoctrineGuardPlugin/sfGuardPermissionForm.class.php, to customise the Add/Edit permission Form added 2 widgets and 2 validator to create 2 select lists from 2

[symfony-users] Re: Propel route problem

2009-10-09 Thread Alexandre SALOME
Sure, your configuration is OK. Maybe the routing match another route before this one. Please check in the logs and tell us, look if you do you have any other rule that could catch your url before ? Use the task *./symfony app:routes websites* to get the list of the app routes. Alexandre

[symfony-users] Re: Propel route problem

2009-10-09 Thread HAUSa
Ah, the URL problem is solved. I had to use url_for('user_activate', $user), and not url_for('@user_activate', $user) (mind the @). But, the form problem still remains. When I submit my form, it says Fatal error: Call to undefined method sfRoute::getObject() in /home/

[symfony-users] Join query problem

2009-10-09 Thread Avani
Hi All, I am confused about 1 query in my symfony project. I have 2 tables as shown below. 1. photo -photoid -photoname -userid -tripid (either 0 or related tripid if trip is assigned) 2. Trip -id -tripname

[symfony-users] Re: Propel route problem

2009-10-09 Thread HAUSa
Hey, this is weird! I checked the log like you said Alexandre, and it matches just the default one... Oct 09 10:17:36 symfony [info] {sfPatternRouting} Connect sfPropelRoute user_activate (/user/activate/:id) Oct 09 10:17:36 symfony [info] {sfPatternRouting} Connect sfPropelRoute user_edit

[symfony-users] Re: a form to create multiple objects

2009-10-09 Thread MoUeTtE
Well, finally I stored the weekday as a bitfield (0x1 for monday, 0x2 for Tuesday...) I still wonder how to save multiple objects from a form save method without having multiple instances of the form, but I guess I'll have to create all my objects by hand, no way to use the parent::save

[symfony-users] Redirect with AJAX

2009-10-09 Thread HAUSa
I submit my forms by use of a XmlHttpRequest. Now, if the form is not valid, AJAX puts the error messages in my form div. But, when the form is valid, I want it to redirect it to another page. And that page has to be loaded by a page refresh. But because I am still in the XmlHttpRequest, Symfony

[symfony-users] Re: Redirect with AJAX

2009-10-09 Thread DEEPAK BHATIA
Try using window.location where XmlhttpRequest comes back. On Fri, Oct 9, 2009 at 2:12 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I submit my forms by use of a XmlHttpRequest. Now, if the form is not valid, AJAX puts the error messages in my form div. But, when the form is

[symfony-users] Re: Database Views with Symfony Doctrine

2009-10-09 Thread E_lexy
@david I am also interested in your solution. My 2 cents: At the moment we are working with views by letting Doctrine create tables from the VIEW model classes, and the overwriting them with an SQL to create the actual views. I have managed to keep the relations (FK) out of the the DB by

[symfony-users] Re: Database Views with Symfony Doctrine

2009-10-09 Thread E_lexy
@david The reason we use these views is because we need Subqueries and Aggregate functions in our views for use in a sfGrid DatasourceDoctrine. Looking a bit at your YML snippet, poses a question: Does you solution provide a way to use subqueries and aggregate functions? -Alex On Oct 9, 11:14 

[symfony-users] Re: sfDoctrineGuardPlugin: anything that advise against adding the profile fields in the sfGuardUser directly instead of define the model Profile?

2009-10-09 Thread tirengarfio
What do you mean with Doctrine simple inheritance?? On Oct 8, 9:50 pm, Tom Boutell t...@punkave.com wrote: You'd have to change the schema.yml of the plugin. But instead of doing that, you can use Doctrine simple inheritance to add the fields to that table. Simple inheritance is a lot

[symfony-users] Re: Redirect with AJAX

2009-10-09 Thread Gareth McCumskey
We had a similar issue, what you need to do is use javascript to redirect and break out of the ajax div as Deepak mentioned On Fri, Oct 9, 2009 at 10:55 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Try using window.location where XmlhttpRequest comes back. On Fri, Oct 9, 2009 at 2:12 PM,

[symfony-users] Re: sfDoctrineGuardPlugin: anything that advise against adding the profile fields in the sfGuardUser directly instead of define the model Profile?

2009-10-09 Thread Gábor Fási
http://www.doctrine-project.org/documentation/manual/1_1/en/inheritance#simple On Fri, Oct 9, 2009 at 12:04, tirengarfio tirengar...@gmail.com wrote: What do you mean with Doctrine simple inheritance?? On Oct 8, 9:50 pm, Tom Boutell t...@punkave.com wrote: You'd have to change the

[symfony-users] Re: Propel route problem

2009-10-09 Thread NairuS
2009/10/9 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com Hey, this is weird! I checked the log like you said Alexandre, and it matches just the default one... Oct 09 10:17:36 symfony [info] {sfPatternRouting} Connect sfPropelRoute user_activate (/user/activate/:id) Oct 09 10:17:36

[symfony-users] Re: sfGuardUser module - updating a user will blank users profile(unless you modify the generator.yml)?

2009-10-09 Thread Daum
Yep just saw another person with the same problem. Wanted to see if anyone else had the trouble before too. Daum On Oct 8, 1:46 pm, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Daun, i do not want to be impolite: I haven't notice this behavior yet, but i would suggest you to create a

[symfony-users] doctrine searchable i18n behaviour not cooperating

2009-10-09 Thread mbernasocchi
hi, I want to have an i18n searchable job posting so I came up with this model: [CODE]OpenJob: tableName: open_job actAs: Timestampable: I18n: fields: [title, description] actAs: Searchable: fields: [title, description] Sluggable:

[symfony-users] Re: sfGuardUser module - updating a user will blank users profile(unless you modify the generator.yml)?

2009-10-09 Thread Daum
http://trac.symfony-project.org/ticket/7302 is the ticket fyi. Daum On Oct 9, 10:47 am, Daum matt...@gmail.com wrote: Yep just saw another person with the same problem.  Wanted to see if anyone else had the trouble before too. Daum On Oct 8, 1:46 pm, Alexandru-Emil Lupu

[symfony-users] Re: sfGuardUser module - updating a user will blank users profile(unless you modify the generator.yml)?

2009-10-09 Thread Pablo Godel
Daum, I posted about it in the list a couple of days ago. I found how to show the profile form but then when saving something else went wrong. I moved to Doctrine since then. Pablo On Fri, Oct 9, 2009 at 10:47 AM, Daum matt...@gmail.com wrote: Yep just saw another person with the same

[symfony-users] Re: Unable to perform DELETE ALL operation: a foreign key constraint fails

2009-10-09 Thread Alexandre SALOME
I use to execute propel:drop-db propel:build-db (or similar) to fix the problem :) 2009/10/8 basos noxe...@gmail.com Unable to perform DELETE ALL operation. [wrapped: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails

[symfony-users] Re: sfDoctrineGuardPlugin: anything that advise against adding the profile fields in the sfGuardUser directly instead of define the model Profile?

2009-10-09 Thread tirengarfio
Thanks.. On Oct 9, 1:32 pm, Gábor Fási maerl...@gmail.com wrote: http://www.doctrine-project.org/documentation/manual/1_1/en/inheritan... On Fri, Oct 9, 2009 at 12:04, tirengarfio tirengar...@gmail.com wrote: What do you mean with Doctrine simple inheritance?? On Oct 8, 9:50 pm, Tom

[symfony-users] sfWidgetFormJQueryDate as default in auto generated code

2009-10-09 Thread axel at
hello list, 1) is there a way to make sfWidgetFormJQueryDate the default widgets for datetime fields in autogenerated code (Base*Form.classes) eg: class BaseTutorialForm extends BaseFormDoctrine { public function setup() { $this-setWidgets(array( 'id' = new

[symfony-users] Re: Propel route problem

2009-10-09 Thread Alexandre SALOME
1 = true in routing parameters... Strange... Try adding : *requirements*: id: \d+ Finally : user_activate: url: /user/activate/:id class: sfPropelRoute options: { model: User, type: object } param: { module: user, action: activate } requirements: id: \d+

[symfony-users] Modifying form object values before saving

2009-10-09 Thread Eno
I need to the values in some form fields when processing the form right before I call save(). Just wondering what would be the best approach to doing that? I was going to override the doSave() and modify the fields there before calling parent::doSave() but maybe that's not the best way? Anyone

[symfony-users] Re: Modifying form object values before saving

2009-10-09 Thread Richtermeister
I believe you just need to add an updateXXXField function to the form, where XXX is the camelized fieldname. That method is passed the value just before saving, and you return the updated value, or false to remove it. Daniel On Oct 9, 3:08 pm, Eno symb...@gmail.com wrote: I need to the values

[symfony-users] Problems running doctrine:build-all task

2009-10-09 Thread Reynier Pérez Mira
Hi every: First of all my apologies if this isn't the right place to ask this. I have created a schema.yml file from scratch containing this: ProjectData: actAs: Timestampable: Searchable: fields: [pid, pname, pdescription, pstatus] columns: id: ~ pid: string(50)

[symfony-users] symfony 1.3 doctrine: unknown connection:

2009-10-09 Thread ouillonn
Hi there, since today I am trying the new symfony version - and am migrating to doctrine. But, unfortunately, it is not working as I expect it to.. I have 2 Databases, thus 2 connections: all: client: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname=client'

[symfony-users] sfGuard remember me does not quite work

2009-10-09 Thread Charles Bernard
Hi there, I’m concerned about this IP checking thing (ip_address field in sf_guard_remember_key table). It seems like my website remenbers me for a day only since most ISPs renew their IPs each day. When I get back to my site the day after the cookie value no longer matches my IP which has

[symfony-users] What about sfSyslogLogger?

2009-10-09 Thread Davide Fedrigo
I'm looking for a symfony class to manage log through syslog. I've found sfStreamLogger, sfConsoleLogger, sfFileLogger (and other) but to my surprise I haven't found one for syslog! Is that true? ...really true? Ok, therefore I'm about to start writing sfSyslogLogger... If anyone here knows why

[symfony-users] javascript quotes in form widget attributes

2009-10-09 Thread Martin Settle
Hi all. This is, I'm sure, a newbie question, but my eyes are going blurry looking at google results. I want to have a choice made in a select box display the next element of the form, which is in a hidden div in my Form class, I have: $this-widgetSchema['vendor_id']-setAttributes(array(

[symfony-users] Re: javascript quotes in form widget attributes

2009-10-09 Thread Martin Settle
Okay, please ignore... I simply reversed the quotes... single quotes to encapsulate javascript and double quotes to encapsulate div id. Oh, and I replaced visible with an empty string. Now it all works. 2009/10/9 Martin Settle martin.set...@gmail.com: Hi all. This is, I'm sure, a newbie

[symfony-users] insert-sql problem

2009-10-09 Thread Braulio
Hi, i'm new at symfony and i already like it. However when i use insert-sql command i get the message: doctrine created tables successfully SQLSTATE[HY000]: General error: 10007 La petici¾n ROLLBACK TRA e la correspondiente BEGIN TRANSACTION. [10007] (severity 5) [] The tables aren't

[symfony-users] Re: insert-sql problem

2009-10-09 Thread Eno
On Fri, 9 Oct 2009, Braulio wrote: Another thing that i've noticed is that the problems resides in the relations portion of the entities in the schema.yml file. Do you think perhaps, showing your schema.yml might be useful? Just sayin'... --