[symfony-users] Sf1.4 doctrine fixtures unique rowids

2010-09-24 Thread Marco Rocci
On a side note. I haven't been able to find something in the documentation to clear up the rowid uniqueness constraint. Must the rowids be unique within their table? Or must they be unique across all tables specified in the fixtures? TIA and regards, Marco Rocci -- If you want to report a vul

[symfony-users] Sf1.4 doctrine fixtures inline won't insert data

2010-09-24 Thread Marco Rocci
Type: office , number: 9328475932 } TIA and regards, Marco Rocci -- 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.

[symfony-users] Sf1.4 doctrine fixtures inline won't insert data

2010-09-24 Thread Marco Rocci
: contact_1: { ContactType: office , number: 9328475932 } TIA and regards, Marco Rocci -- 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

Re: [symfony-users] [symfony 1.4] boolean custom field best practice

2010-09-09 Thread Marco Rocci
Il 09/09/2010 10.35, jota ha scritto: Have you tried to use the sfValidatorBoolean? It should conver 'on' to true Thanks. That works, and is much more cleaner. Marco Rocci -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec

[symfony-users] [symfony 1.4] boolean custom field best practice

2010-09-09 Thread Marco Rocci
ield($value) { $this->customField = ($value === true || $value == 'on'); } ... but I was actually hoping there was something better. Are there some primitives or php/symfony functions to handle these type conversions in a standard way? Any best practice? TIA and regards, M

Re: [symfony-users] readonly related value in form

2010-09-08 Thread Marco Rocci
I solved this. Maybe the solution can be of use to someone else. Il 06/09/2010 9.27, Marco Rocci ha scritto: Symfony 1.4 Doctrine admin backend application With this simplified schema: Product: columns: code: { type: string(10) } name: { type: string(100

Re: [symfony-users] readonly related value in form

2010-09-06 Thread Marco Rocci
chael [_form.php] echo $form['receipt_amount']->renderRow(array('readonly')); This was the bit I was missing. In my case I don't need the javascript, as the value does not have to be changed. I just didn't know how to render it readonly in the layout. Tha

[symfony-users] readonly related value in form

2010-09-06 Thread Marco Rocci
w main form. But I mostly think I just missed something... it wouldn't seem to be that difficult. Any ideas or pointers (tutorials, howtos)? TIA and regards, Marco Rocci -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received th

[symfony-users] Doctrine - readonly hydrated value

2010-09-03 Thread Marco Rocci
product id. I could easily put that in readonly and the user would be satisfied. I have not tried layouts or partials... up to now I've been doing everything in the model and in the forms. I'm using a custom variation of the ahDoctrineEasyEmbeddedRelationsPlugin to embed the related Del

[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin is adding empty rows

2010-08-26 Thread Marco Rocci
de] What have I missed? Reading the doc, I was convinced that if the fields listed in "considerNewFormEmptyFields" were empty, then no insert would be tried on the db. What happens is that I do get a new record, with year=0. Should I tweak the model so it doesn't save them, or is the