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
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
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,
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
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
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
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
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 =
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
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
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:
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
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
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(
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
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:
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
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,
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.
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
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();
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]:
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
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
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
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
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
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:
-
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
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({
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
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 --
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
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
34 matches
Mail list logo