[symfony-users] (Doctrine?) Bug with last insert ID and composite primary keys which have an auto_increment member

2011-02-15 Thread Fred
What is the bug: When a Doctrine_Record is saved (using save()) _id is not fully updated. This problem is occurring for me using MySQL, with tables that have composite primary keys (and columns that need it do have auto_increment set). The schema was auto-generated from the database, and the

[symfony-users] Re: embedRelation updating an object with null attributes (Propel)

2011-02-15 Thread Massimiliano Arione
Embedded form is updated in form itself (in your case, in EventDateForm). So, you can try to juggle with that form's methods (doSave and doUpdateObject) cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] symfony2 RepeatedField

2011-02-15 Thread Andras
Hi, I have added a RepeatedField to a form: $enterprise-add(new RepeatedField(new PasswordField('password'), array('first_key' = 'password', 'second_key' = 'password_again'))); How can I change the labels Password and Password again in Twig? {{ form_label(form.enterprise.password,

[symfony-users] [SF2] Forms and validation

2011-02-15 Thread Lideln
Hi there, I have been experimenting with the PR6 lately. Now I'm stuck with the forms and validation, and kinda need some tips. I followed the official tutorial, and I succeeded in creating a form and displaying it (but two minor things : I did not see an EmailField in the code, and I could not

Re: [symfony-users] symfony2 RepeatedField

2011-02-15 Thread Bernhard Schussek
Hi Andras, Please don't cross post. I have answered your question in your previous thread already. Bernhard -- 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 subscribed to the Google Groups

Re: [symfony-users] Re: - EntityChoicField

2011-02-15 Thread Bernhard Schussek
2011/2/14 Damon Jones damonljo...@gmail.com: Why not have a getFullname() accessor method in your user entity which returns first and last name concatenated and use that property? This should work. If it doesn't, that's a bug. Bernhard -- If you want to report a vulnerability issue on

Re: [symfony-users] Re: [Symfony2] Executing code before the controller action was called

2011-02-15 Thread Gábor Fási
My bad, didn't see the Sf2 flag in the subject. On Tue, Feb 15, 2011 at 14:21, Justin Fortier justfort...@gmail.com wrote: Your solution is Symfony 1.4 based, I'm not sure how this is all handled in Symfony2. Nikita, I'm also trying to implement something similar in nature, I'll let you know

[symfony-users] Why doesn't sfOutputEscaperArrayDecorator escape keys?

2011-02-15 Thread Basil Hussain
I was checking the validity of my project's HTML and noticed that some things weren't being escaped properly. After investigating, I discovered the problems were in certain places where I am outputting an array with string keys. Basically, in my code I am doing this: // Action $this-foo =

Re: [symfony-users] Re: [symfony2][PR6] - create form with setDataClass and multiple entities

2011-02-15 Thread Bernhard Schussek
The validator returns This value should not be blank two times for each field with @validation:NotBlank() if I submit the form empty This behaviour occurs only with fields of the second entity (translation). This is a known bug. Bernhard -- If you want to report a vulnerability issue on

[symfony-users] sfJqueryReloadedPlugin - show loading

2011-02-15 Thread hribo
Hi guys, how to achieve to display loader using *jq_submit_to_remote* method? ?php echo jq_submit_to_remote('name', 'Odoslať', array( 'update' = 'change_zone', *'loading' = #loading, //???* 'url' = url_for('fotografia_send_contactmail'), )) ? in my template is already div

[symfony-users] Re: [SF2] Forms and validation

2011-02-15 Thread Nikita Korotaev
There is no such thing like EmailField at the moment, I don't know why it's in docs. You should use textField and set Email validator instead. The form creation seem to be valid in docs, only missing the name parameter. Check this topic for more information:

[symfony-users] Re: Forms and validation

2011-02-15 Thread Justin Fortier
There used to be an email field from what I've heard, but it's redundant because of the textfield. The only reason the url field is there, is because you can set it up for different protocols. On Feb 15, 11:23 am, Nikita Korotaev websir...@gmail.com wrote: There is no such thing like EmailField

[symfony-users] Re: Admin generator preferences panel

2011-02-15 Thread Richtermeister
Hey Felds, In the past I have dealt with this by just putting a SettingsForm into the admin area (styling it to look the same as an admin module), and writing the settings to a yml file. During runtime I then load the file and merge it with the settings in sfConfig. This way I can allow admins to

[symfony-users] Re: - EntityChoicField

2011-02-15 Thread Damon Jones
I was intrigued, so I tested it myself and can confirm that it works using an accessor. Alternatively, you could modify the __toString() method which is used by default if nothing is provided for the property value in the options array. // Form: $this-add(new EntityChoiceField('salesRep', array(

[symfony-users] Re: - EntityChoicField

2011-02-15 Thread jdewit
Very nice! Thanks! -- 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 subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To

[symfony-users] Odd Doctrine behavior in form processing

2011-02-15 Thread Yitzchak Schaffer
Hello, I am encountering unexpected behavior with form processing, symfony 1.4 with Doctrine. I have a table which has a many-to-many relationship to itself: Person: [...] relations: Teachers: class: Person refClass: PersonTeacher local: student_id foreign:

Re: [symfony-users] [Symfony2] - Choicefield empty_value

2011-02-15 Thread Bernhard Schussek
Hi, This is intended behaviour. An empty value is only displayed if a field is not required. Through the empty_value option you can change the label of that empty value. Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Fatal error: Class 'BaseForm' not found

2011-02-15 Thread dietercubano
Hi comunity! My projects now show that: Fatal error: Class 'BaseForm' not found in C:\Documents and Settings \Desarrollo Web\Mis documentos\NetBeansProjects\reportes\plugins \sfGuardPlugin\lib\form\BasesfGuardFormSignin.class.php on line 3 after installed sfGuardPlugin and change the schema.yml,

[symfony-users] Integrating an html template in a symfony project

2011-02-15 Thread diengsallah
Hi all, I have a static html web site wish is really nice for me (I mean the design is beautifull). Now, I want to make it dynamic using symfony. While symfony is an MVC framework, I want to use my static web site as the view. Is it possible ? If so, can you help me to start ? thank you very much.

[symfony-users] Re: Forms and validation

2011-02-15 Thread Lideln
Hi Nikita, Yes I already discovered the missing name by myself and added a __construct() in my RegisterForm class, that is calling parent::__construct('register') and it works fine. But the validators don't work, I got this strange error as if a Validation instance does not exist in the context

[symfony-users] error

2011-02-15 Thread Laxmi
I am hear trying to find weather email is existing in database or not but i am getting error The template create.php does not exist symfony. Please help $user = $this-user; $user = Doctrine_Core::getTable('user') -createQuery('a') -where('a.email = ?',$email) -execute();

[symfony-users] jquery validation

2011-02-15 Thread Laxmi
i am trying to do validation by using j query but it is not working can any one help me please $(#form_register).validate({ rules: { user[username]: required, user[first_name]:

[symfony-users] Re: Forms and validation

2011-02-15 Thread Lideln
Hi Nikita, Thanks for the answer. I had already discovered the form name parameter. Only I fixed it by creating a ctor in my form and calling parent::__construct('register'). The topic you kindly gave me did not help. I still have the The option validator is required for validating error. Just

[symfony-users] Form validation

2011-02-15 Thread Lideln
Since I cannot add new answers to the topic I created earlier (why that ?), I create a new one here with additionnal info. As I said, I followed the official tutorial to create a RegisterForm and using it to register new members. But I got stuck at the validation, because I got the error : The

Re: [symfony-users] Form validation

2011-02-15 Thread Christophe COEVOET
Le 15/02/2011 23:57, Lideln a écrit : Since I cannot add new answers to the topic I created earlier (why that ?), I create a new one here with additionnal info. As I said, I followed the official tutorial to create a RegisterForm and using it to register new members. But I got stuck at the

[symfony-users] Re: Forms and validation

2011-02-15 Thread Nikita Korotaev
Instead of using constructor, add a name in Create function: $oForm = RegisterForm::create($this-get('form.context'), Registration); Correct syntax for annotation-validators is to use parents in the end: email(), NotBlank()... In all other cases your code seems to be valid. Your entity class

Re: [symfony-users] Re: Forms and validation

2011-02-15 Thread Bernhard Schussek
Correct syntax for annotation-validators is to use parents in the end: email(), NotBlank()... This is not true. You can leave away the parents just as well. Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Extension load() config

2011-02-15 Thread Michael
I have updated to the latest Symfony and implement the load() to all my bundles: -public function configLoad(array $configs, ContainerBuilder $container) +public function load(array $configs, ContainerBuilder $container) also remove the .config from the /app/config/config.yml: -

Re: [symfony-users] error

2011-02-15 Thread Gareth McCumskey
Is your action called executeCreate? If so, what is happening is that your if condition is not being met so it does not hit your $this-setTemplate() call and so continues on to try and find the default template for the executeCreate action called createSuccess.php and errors out because you have

Re: [symfony-users] jquery validation

2011-02-15 Thread Gareth McCumskey
Try asking on the jquery forums etc. http://plugins.jquery.com/project/jqueryvalidate On Tue, Feb 15, 2011 at 11:53 PM, Laxmi laxmipsa...@gmail.com wrote: i am trying to do validation by using j query but it is not working can any one help me please $(#form_register).validate({

Re: [symfony-users] Fatal error: Class 'BaseForm' not found

2011-02-15 Thread Gareth McCumskey
Did you clear cache? On Tue, Feb 15, 2011 at 5:38 PM, dietercubano dieterc...@gmail.com wrote: Hi comunity! My projects now show that: Fatal error: Class 'BaseForm' not found in C:\Documents and Settings \Desarrollo Web\Mis documentos\NetBeansProjects\reportes\plugins

Re: [symfony-users] sfJqueryReloadedPlugin - show loading

2011-02-15 Thread Gareth McCumskey
Have your change_zone div contain the spinner image you want but set its style attribute as style=display:none and then just toggle its display during loading. When the content you want inside it loads it will replace the image. div id=my_content_is_here !-- Whatever content I need for my user --

Re: [symfony-users] Why doesn't sfOutputEscaperArrayDecorator escape keys?

2011-02-15 Thread Gareth McCumskey
Because the key needs to stay exactly as it is because that is considered a reference to the value, not a value itself. If sfOutputEscaperArrayDecorator escaped your keys how could you call them with $array['key'] if the key gets changed? On Tue, Feb 15, 2011 at 5:23 PM, Basil Hussain

Re: [symfony-users] sfWidgetFormPropelChoice newbie problem help needed please

2011-02-15 Thread Gareth McCumskey
Technically you are not supposed to add your won code to symfony's auto-generated Base classes. Ideally you should be creating your own form class that extends that Base class and then setting your configuration in there. The simple reason is that if you altered schema and rebuilt the forms all