[symfony-users] Delete autocompleted field

2010-06-17 Thread Thibault Jouannic
Hi symfony users, I'v got a problem with the sfWidgetFormDoctrineJQueryAutocompleter widget. I used it to set up an autocomplete field, which works like a charm. However, once I've filled up a field with autocomplete, and saved my object, I cannot unset it anymore. Even if I clear the text

[symfony-users] Re: batch import

2010-06-03 Thread Thibault Jouannic
Hi, This is a common problem. Like Eno said, it's easier to split the import into small batches. In your task : protected function execute($arguments = array(), $options = array()) { // initialize the database connection $configuration =

[symfony-users] Re: Read only/HTML form widget

2010-06-01 Thread Thibault Jouannic
Hi, http://snippets.symfony-project.org/snippet/387 You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Huse tar...@scanmine.com wrote: Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my

[symfony-users] Re: Embedded forms

2010-03-14 Thread Thibault Jouannic
Hi, Don't use merged forms, stick to embedded forms, and create a custom template to display your form the way you like. Cheers, Thibault J. On Mar 11, 4:19 pm, Lea Haensenberger baerne...@gmail.com wrote: Hi all, I have a form with an embedded form and I'd like to reorder the fields in the

[symfony-users] csDoctrineActAsCategorizablePlugin for sf 1.4

2010-02-20 Thread Thibault Jouannic
? If it's not the case, I'll have to put my hands into the code anyway, so this will end on github. I'll let you know. Regards. Thibault Jouannic. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us

[symfony-users] Re: Why is not created the field id in the table?

2010-02-18 Thread Thibault Jouannic
Hi, You already define a (composite) primary key on your table, there is no need for an extra id. If you need the id field, remove the primary: true options in AmigoUsuario. If you do that, you might want to define some index on your table. Cheers. Thibault J. On Feb 17, 8:11 pm, Javier Garcia

[symfony-users] How to test forms in a component

2010-02-16 Thread Thibault Jouannic
Hi Symfony users, How do you write functional tests when the code is in a component ? Exemple: I used to have a form in a page, which I tested like that : info('3 - Status')- get('/en/user/edit-my-profile')- click('Update your status', array('status' = array( 'status' = 'Gloubigoulba'

[symfony-users] placeholder in setDefaultMessage

2010-02-10 Thread Thibault Jouannic
Hi sf list, I'm trying to use the new sfValidatorBase::setDefaultMessage to define a message for the 'Required' error in my forms. However, I cannot figure out how to use placeholders in those messages. I'd like to write something like this : sfValidatorBase::setDefaultMessage('required', 'The

[symfony-users] Re: Many-to-Many with extra fields

2010-02-05 Thread Thibault Jouannic
Hi, I'v you tried the embedRelation function ? in FactPersonForm, try something like configure() { $this-embedRelation('Fact'); $this-embedRelation('Person'); } And if you do so, remember to add only one primary key on the FactPerson table. Ie. you should have in you schema : FactPerson:

[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-29 Thread Thibault Jouannic
Created the ticket. You can see it here : http://trac.symfony-project.org/ticket/8199 Regards. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group,

[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-29 Thread Thibault Jouannic
, Thibault Jouannic tee...@gmail.comwrote: Created the ticket. You can see it here : http://trac.symfony-project.org/ticket/8199 Regards. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us

[symfony-users] Doctrine inheritance and i18n forms

2010-01-27 Thread Thibault Jouannic
behavior ? Could it be changed, and should I submit a bug report ? Thank you for reading, regards, Thibault Jouannic. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe

[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-27 Thread Thibault Jouannic
So, an idea anyone ? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more

[symfony-users] Re: Best Practices for Schema Changes

2009-05-20 Thread Thibault Jouannic
Hi, If you use Doctrine, you can use migrations tools : http://www.symfony-project.org/doctrine/1_2/en/07-Migrations On 20 mai, 15:50, slinky66 tcasto...@comcast.net wrote: I have not been able to find a best practice approach in the Symfony docs for dealing with schema changes as it

[symfony-users] Re: Zend Search scalability

2009-05-13 Thread Thibault Jouannic
SOLR (http://lucene.apache.org/solr/) which is built upon Java Lucene and interface with it via a simple PHP API, performance is excellent, I recommend it warmly.     gabriel On May 11, 12:01 pm, Thibault Jouannic tee...@gmail.com wrote: Hello, Thank you for your answer. I've tried

[symfony-users] Re: Zend Search scalability

2009-05-11 Thread Thibault Jouannic
-project.org/documentation/manual/1_1/en/searching -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Thibault Jouannic Sent: 10 May 2009 13:47 To: symfony users Subject: [symfony-users] Zend Search scalability Hello sf users, I've

[symfony-users] Re: Zend Search scalability

2009-05-11 Thread Thibault Jouannic
use existing tools to manage tweak the indexes and it's easily extendable. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Thibault Jouannic Sent: 11 May 2009 11:01 To: symfony users Subject: [symfony-users] Re: Zend

[symfony-users] Zend Search scalability

2009-05-10 Thread Thibault Jouannic
Hello sf users, I've got a performance problem with zend search. I followed the jobeet tutorial to integrate it, and at the beginning, eveything worked like a charm. Today, I've got 6 documents in db (doesn't seems huge to me), and only a few fields are indexed (title, tags). Now, if a do

[symfony-users] Re: Zend serch and sorting by score

2009-05-03 Thread Thibault Jouannic
Hi, I'll test that. Thanks On 1 mai, 23:55, Jeremy Benoist jeremy.beno...@gmail.com wrote: Hi Thibault, I got the same problem once time ago. I used mysql FIELD keyword to sort result in the same way Lucene did it. Let me show you my code : $hits = $this-getLuceneIndex()-find($query);

[symfony-users] Re: How to add multiple forms to a page?

2008-11-04 Thread Thibault Jouannic
Hello, You should check functions like embedForm, mergeForm, embedFormForEach, in the sfForm class. They allow to build one form embedding others. You may find them interesting for your need. à++; Thibault On 2 oct, 22:12, Ardesco [EMAIL PROTECTED] wrote: I'm a fairly new symfony user, and

[symfony-users] Re: propel : dynamic linking

2008-11-03 Thread Thibault Jouannic
Ok, I undestand your solution, that make sense in the case of this example Thank you for your help. On 1 nov, 23:59, Richtermeister [EMAIL PROTECTED] wrote: Hey there, no, the way I mean is this: bill:   id: shop_items:   id:   name:   *other common attributes* attributes:   id:  

[symfony-users] Re: propel : dynamic linking

2008-10-31 Thread Thibault Jouannic
in the future. At least his is how many online store systems work. Daniel On Oct 30, 6:11 am, Thibault Jouannic [EMAIL PROTECTED] wrote: Hello there, I need to link two tables together, however the linked table type is not fixed. Exemple : I've got a bill table, with fields like price

[symfony-users] propel : dynamic linking

2008-10-30 Thread Thibault Jouannic
Hello there, I need to link two tables together, however the linked table type is not fixed. Exemple : I've got a bill table, with fields like price, paid_date, customer_id, etc. From that table, I want a foreign key to link to the charged object, so I can use something like :