[symfony-users] Re: saving multiple objects in a form save

2009-03-16 Thread Gareth McCumskey
Its because the save function in the base calss retrieves the ID but you are overiding the save mechanism. Try using the parent classes save mechanism in order to let it do that save for you as well as return the ID. On Sun, Mar 15, 2009 at 7:42 PM, maestro mustafa...@gmail.com wrote: Hello

[symfony-users] Fixture Files

2009-03-16 Thread Benjamin
How do I specify which fixture files to use on a per environment basis? I don't want test data fixtures being added to the production database. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
Am stumped by the same problem. I have a form that corresponds to the main db object, and in it i have a bunch of embedded forms with related objects. I need the ID generated for the main object to pass to the related objects. The main object is being saved fine (I see it in the DB), but when i

[symfony-users] Re: saving multiple objects in a form save

2009-03-16 Thread maestro
Hi Gareth, Thanx for the reply! Am not sure that i understand you correctly. Am overriding the form's save() not the propel object's save(). Propel form's original save calls the form's object-save() and returns the object. I'm now trying to do this in another way (in another forum thread) but

[symfony-users] Re: Fixture Files

2009-03-16 Thread Yevgeniy A. Viktorov
### from symfony help propel:data-load: If you want to load data from other directories, you can use the --dir option: ./symfony propel:data-load --dir=data/fixtures --dir=data/data frontend i.e. you can place production fixtures in one place(data/fixtures for example) p.s. it's also

[symfony-users] Re: saving multiple objects in a form save

2009-03-16 Thread lionslair
I think he is suggesting something like public function save() { parent :: save($this); // then mabye call $this-saveEmbeddedForms($this); } On Mar 16, 4:04 pm, maestro mustafa...@gmail.com wrote: Hi Gareth, Thanx for the reply! Am not sure that i understand you correctly. Am

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread lionslair
Can you show me your database schema. If it works on one I don't know why it doesn't work on the other. On Mar 16, 3:52 pm, maestro mustafa...@gmail.com wrote: Am stumped by the same problem. I have a form that corresponds to the main db object, and in it i have a bunch of embedded forms

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
Am still on it.. here is my schema. message: _attributes: { phpName: Message } id: sender_id: subject: body: status_id: created_at: message_reciever: _attributes: { phpName: MessageReciever } id: { type: BIGINT, primaryKey: true, required: true }

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread lionslair
These are the import functin out of the sfFormPropel.class.php See how the main object is saved then it deals with the childs. It works fine when the child exists but I don't know why it is not making the connection on the creation of new records that are made at the same timer as main. 349

[symfony-users] Re: schema.sql is empty. Anybody can a help???

2009-03-16 Thread Schorsch
Hey, do you have an non empty schema.yml file? Doctrine stores it's schema.yml in the config/doctrine folder. If the doctrine folder doesn't exist, you have to create manually before you start. On Mar 15, 6:22 pm, Carlos Henrique chasi...@gmail.com wrote:  am following the tutorial for

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread lionslair
Here is my schema. I always generate an XML schema but converted this so I can show you. Can you see anything wrong with it? propel: _attributes: package: lib.model defaultIdMethod: native contact: _attributes: { phpName: Contact } id: { type: INTEGER, size: '11',

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread lionslair
Maybe the schemas need to be done like this as I have just re-read in the documentation. Listing 8-28 - Foreign Key Alternative Syntax propel: blog_article: id: title: varchar(50) user_id: { type: integer } _foreignKeys: - foreignTable: blog_user

[symfony-users] Re: schema.sql is empty. Anybody can a help???

2009-03-16 Thread Nathan Rzepecki
I use propel not doctrine - Nathan Rzepecki http://www.lionslair.net.au Schorsch wrote: Hey, do you have an non empty schema.yml file? Doctrine stores it's schema.yml in the config/doctrine folder. If the doctrine folder doesn't exist, you have to create manually

[symfony-users] using calender

2009-03-16 Thread Vikaash
hai i just want to use the current ,previous and the next month calender on my web page .is there any way in symfony,if then sombody pls tell me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] Re: Doctrine 1.0 search utf8 strings

2009-03-16 Thread tonio607
It's now clearly linked with some piece of configuration, as it works in Production, not in Dev. As we work on windows and the production is on linux, I have some ideas where to look at. On 13 mar, 09:39, tonio607 antoine.roll...@gmail.com wrote: I have a Doctrine_PgSql_Exception :

[symfony-users] Master-Slave Replication - How To

2009-03-16 Thread Nickolas Daskalou
Using: Symfony 1.2, Propel 1.3 Hi guys, Does anybody know what is the best way to handle MySQL master-slave replication in Symfony 1.2 using Propel 1.3? There are plugins and code snippets available for older versions of Symfony but nothing for 1.3. Thanks for any help. - Nick

[symfony-users] Re: Master-Slave Replication - How To

2009-03-16 Thread Lee Bolding
This can be done natively with MySQL - check the MySQL docs On 16 Mar 2009, at 11:12, Nickolas Daskalou wrote: Using: Symfony 1.2, Propel 1.3 Hi guys, Does anybody know what is the best way to handle MySQL master-slave replication in Symfony 1.2 using Propel 1.3? There are plugins and

[symfony-users] Re: Master-Slave Replication - How To

2009-03-16 Thread Lukas Kahwe Smith
On 16.03.2009, at 12:19, Lee Bolding wrote: This can be done natively with MySQL - check the MySQL docs On 16 Mar 2009, at 11:12, Nickolas Daskalou wrote: Using: Symfony 1.2, Propel 1.3 Hi guys, Does anybody know what is the best way to handle MySQL master-slave replication in

[symfony-users] Re: sfEasyGMapPlugin v1.0 out

2009-03-16 Thread Thomas Rabaix
I will probably add a new version with more fields. Do you have specifics thought on it ? On Fri, Mar 13, 2009 at 6:50 PM, Yevgeniy A. Viktorov w...@osmonitoring.comwrote: Yeah, that's it! Have you any futher todo? :) Thank you! Thomas Rabaix wrote: You should read these posts :

[symfony-users] Re: Master-Slave Replication - How To

2009-03-16 Thread Lee Bolding
Ah. My bad :) If you want to play about with some advanced MySQL stuff, you *CAN* do this natively with MySQL though (but it's still Alpha apparently) http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy-cmdline.html :) On 16 Mar 2009, at 11:22, Lukas Kahwe Smith wrote: On 16.03.2009, at

[symfony-users] Re: schema.sql is empty. Anybody can a help???

2009-03-16 Thread Eno
On Sun, 15 Mar 2009, Carlos Henrique wrote: am following the tutorial for Jobeet/Doctrine on Day 3. After I created the schema.yml and run build-sql, the prompt is doctrine generating sql for models doctrine Generated SQL successfully for models But I cannot find mentioned sql file

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
Still stuck! Looking a the sfPropelForm save() it is clear that the call to saveEmbeddedForms comes after the main object is getting saved. I see it also happening in the log file. Could it be something to do with the begin and transaction calls that surrounding doSave and saveEmbeddedForms? I

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread Nathan Rzepecki
It is this line here that does it. $entry-setServerId($this-getObject()-getId()); within public function saveEmbeddedForms($con = null, $forms = null) Because by the time that is called the main object is then saved. - Nathan Rzepecki http://www.lionslair.net.au

[symfony-users] Re: Generate fixture from database contents

2009-03-16 Thread Steve the Canuck
Very much appreciated. Thanks. :-) On Mar 15, 2:04 pm, Yevgeniy A. Viktorov w...@osmonitoring.com wrote: I do same as maestro wrote, also you can specify the models you would like to get fixtures for, i.e: symfony propel:data-dump --classes=BlogPost,BlogComment frontend Thanks. maestro

[symfony-users] Re: Pass values from one form to another

2009-03-16 Thread Tomasz Ignatiuk
I think it is good to create profile after submitting first form, then pass created id to second profile and put there other widgets you need. Then just submit form and set values to profile object where id is the one you passed. --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
sadly $this-getObject()-getId() is returning a null in my case... although the rest of the object values are there. On Mar 16, 8:13 pm, Nathan Rzepecki webmas...@lionslair.net.au wrote: It is this line here that does it. $entry-setServerId($this-getObject()-getId()); within  public

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
but it is! it is right there in the db.. isn't this interesting! On Mar 16, 10:29 pm, Nathan Rzepecki webmas...@lionslair.net.au wrote: That means it is not yet saved. - Nathan Rzepeckihttp://www.lionslair.net.au maestro wrote: sadly $this-getObject()-getId() is

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
Oppps, this is embarrassing. I was missing the autoIncrement: true, in my message schema.yml. Nathan thanx for your time.. On Mar 16, 10:53 pm, maestro mustafa...@gmail.com wrote: but it is! it is right there in the db.. isn't this interesting! On Mar 16, 10:29 pm, Nathan Rzepecki

[symfony-users] Re: connect to GraceNotee

2009-03-16 Thread Ant Cunningham
Ummm, id use the sfWebBrowserPlugin if i were you... Beyond that its hard to say unless youre having a specific issue with something you've done. Eduardo wrote: English: i want to connet to GraceNote system to get metadata to music files...i want a know some tips to do it... Espanol:

[symfony-users] Re: connect to GraceNotee

2009-03-16 Thread Eno
On Mon, 16 Mar 2009, Ant Cunningham wrote: Ummm, id use the sfWebBrowserPlugin if i were you... Beyond that its hard to say unless youre having a specific issue with something you've done. Actually I think they have an API but its not free (except for non-commercial use). Its what iTunes

[symfony-users] Best way to do changes in db model

2009-03-16 Thread Daniel
Went trough http://groups.google.com/group/symfony-users/browse_thread/thread/1c2c4fa066c59171?hl=en discussing best way to get data from database into YAML. A follow up question popped up regarding the best way to do changes to a db model. I usually do the changes in my schema file.

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread Nathan Rzepecki
No problem. - Nathan Rzepecki http://www.lionslair.net.au maestro wrote: Oppps, this is embarrassing. I was missing the autoIncrement: true, in my message schema.yml. Nathan thanx for your time.. On Mar 16, 10:53 pm, maestro mustafa...@gmail.com wrote: but it is!

[symfony-users] Jobeet Day 7 schema.yml parse error

2009-03-16 Thread Mark
I'm having trouble with the schema.yml getting to build. I get a parse error. unable to parse line 3 Sluggable: And my file... JobeetCategory: actAs: {Timestampable: ~ } Sluggable: fields: [name] columns: name: { type: string(255), notnull: true} JobeetJob: actAs: {

[symfony-users] Help with admin module actions

2009-03-16 Thread Guido
Hi guys. I got a little question for you, hope anyone can help me. I got two tables in my model. One is called contenido, the other is called recurso. They got a many to many association which is made by the table recurso_contenido. The schema.yml part of these tables is here:

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-16 Thread Steve the Canuck
It looks like an indent issue to me. On Mar 16, 4:29 pm, Mark hube...@missouristate.edu wrote: I'm having trouble with the schema.yml getting to build. I get a parse error. unable to parse line 3 Sluggable: And my file... JobeetCategory:   actAs: {Timestampable: ~ }     Sluggable:    

[symfony-users] Timezone manipulation

2009-03-16 Thread Java Guy
Hi, I'm a little new to PHP and symfony, and I'm trying to determine the best overall approach to deal with timezones for my app. I'm building an app where one set of users enter an event booking time in their local time. Another set of users offer to provide a service at the designated

[symfony-users] How to display different data set in backend admin through generator?

2009-03-16 Thread xhe
I am now using backend admin to manage my website. But I wondered if there are any way to give different data to different roles. In details, I have admin, and sales. I want sales to have access to only their own clients, while admin can have access to all the sales data. But if I use symfony to