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
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.
:
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
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
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
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
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
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
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
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
10 matches
Mail list logo