> $subForm->getWidgetSchema()->setLabel($index, " ");
>
> in embedRelation() function in sfFormDoctrine class. I am not sure if it the
> right way ?
This may work (although rather a hack, beauty alone doesn't save your
life), maybe only partially, as this is actually a topic of rendering
the HTM
On 23 Nov., 13:43, Stéphane wrote:
> Of course, instead of using static variables, you can create getters to
> retrieve values from configurations, so it will be easier to change the
> number of allowed uploadable photos by simply changing a value in a
> config/app.yml.
> Something like
> public f
To limit the number of uploadable photos to 6 at most:
// lib/form/doctrine/ProductForm.class.php
public function configure()
{
static $maxUploadablePhotos = 6;
static $maxUploadablePhotosAtOnce = 2;
$form = new ProductPhotoCollectionForm(null, array(
'product' => $this->getObject(),
Hi, I have an answer to your question in
http://forum.symfony-project.org/viewtopic.php?f=22&t=30678&start=0
Regards, RAPHAEL
--
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 t
This presentation could be of help to you:
http://www.slideshare.net/denderello/symfony-live-2010-using-doctrine-migrations
--
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
some light upon $request variable. I see both of you
> guys using it, typically I use it always as:
>
> $this->getRequest()->getParameter()etc...but is there a way to
> initialize $request.
>
> Thanks a ton, Happy weekend![?]
>
> On Thu, Oct 14, 2010 at 4:32 AM, Raphael Sch
It's not a solution, but it can be one part of the solution you are
searching for: the sfDoctrineActAsSignablePlugin plugin.
--> http://www.symfony-project.org/plugins/sfDoctrineActAsSignablePlugin
Another source for information:
http://www.slideshare.net/jcleveley/working-with-the-admin-gener
> but is it possible to get request parameter inside the model layer?
No, MVC doesn't allow the model to know the scenario (or the use case)
and thus where from some specific information is coming.
In principle only the action (the "C" controller part in MVC) knows
about the specific scenario and t
Provided that I haven't misunderstood your problem, I think that you
can add multiple submit buttons to one form, and that you can
differentiate them in the action through their name attributes. So
there would be no need to have multiple instances of the (same) form.
E.g. in the template for your
You may check out whether the behavior features in Doctrine may serve
you for your need:
- use the Searchable behavior/template provided by Doctrine, or
- develop your own Doctrine behavior that suits your exact needs
For the latter, refer to
http://www.symfony-project.org/more-with-symfony/1_4/
This is quite easy. The validator that the (Doctrine-generated) class
BaseOrganisationForm is setting up, is fine and doesn't need to be
replaced. Just add the required option to that validator, such as
follows:
In the configure() method of your form class:
$this->validatorSchema['organisation
the wrote:
> I'd add as common cases, classes with spaces BEFORE the http://groups.google.com/group/symfony-users?hl=en
See: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/13
Subchapter "User Attributes" contains a note addressing the issue
about storing objects directly:
We could have feasibly stored the JobeetJob objects directly into the
session. This is strongly discouraged because the session variables
Which action are you in, executeNew(), executeCreate(), executeEdit()
or any other one?
The thing in general is that the defaults are used for filling the
widgets with default data when you render the form for displaying it
to the user. It's not taken into the object itself when you are about
to s
Have you verified (e.g. using your debugger) that the object's
classnames are in reality what you should expect in theory?
- the escaping strategy for your application?
- the classname of $page object? (should be
sfOutputEscaperObjectDecorator)
- the classname of $page->$value property? (should be
Ensure symfony and dev tools being properly installed on your new
laptop, and copy your project files to the new laptop...
--> is there anything specific that you would wish to hear as an
answer?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-pro
Hi Romain, how about
$page->getContent(ESC_RAW);
or also:
$page->getRawValue()->getContent();
?
With $page you are actually talking to a
sfOutputEscaperObjectDecorator object, which holds your Page object in
its $value property.
See the __call method in class sfOutputEscaperObjectDecorato
Hi Benoit, I'm confused: do you mean Propel behaviors or Doctrine
templates & listeners? Or something else?
(I have never seen any behaviours in Doctrine.)
Thanks, RAPHAEL
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received t
array('' =>'-', range(14,130))
...seems to me a bit a strange construction, a mix of associative and
non-associative array elements. In any case the 'choices' option needs
a associative array, so it may work better if you put together a
proper associative array?
E.g. like:
$choices =array_merge(arr
My apologies if I misunderstood your question, and perhaps you may
elaborate a bit more on your specific situation. You want to replace
sfRoute by your own class in general for all routes (unless explicitly
specified in routing.yml)? What sort of routes have you then defined
in routing.yml, e.g. sf
Hi, I am at sfLive.. :-)
One (maybe not the single possible) answer to your question: specify
your custom route class in routing.yml.
For the details, see the beginning of this chapter:
http://www.symfony-project.org/reference/1_4/en/10-Routing
Cheers, RAPHAEL
--
You received this message bec
Samuel, could you resolve the issue in a successful manner?
Feedback is welcome, Raphael.
--
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
I may have had once the same problem in my early days with Doctrine,
and, provided that I remember correctly, it was related to the
definition of the local identifier used for the relation.
In your case "uid": try whether declaring it as a integer(4) help to
solve the problem. Strangely enough (or
Your declaration of the many-many relationship between Campaign and
AddressBook is not complete enough. In particular, search the
"refClass" parameters are lacking in your schema.yml.
Your schema as of now declares only these two 1--to-many
relationships, which is not wrong but only half of the sto
Can you maybe tell us at which step are you stuck? E.g. what errors
you get?
So we can focus on the problem...
--
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 f
On 5 Feb., 15:24, Cainã wrote:
[...] The problem with this association, in special, is that the
FactPerson table has
some extra fields, apart from the fact_id and the person_id
fields. How
could i create such form? [...]
Assuming that you did define FactPerson in schema.yml, a
FactPer
Calling $form-setDefaults(null) resets all values in the form, that
should work in principle (didn't try out yet). It's a sort of full
reset, and the fields should get the defaults as
If you desire the tainted values (the ones the user entered before
validating them, you could use something like $f
I thought the useFields() method would appropriately care for the
validators as well, so no further method needed for this?
Cheers, RAPHAEL
--
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...@googl
Thanks Eno for your reply, I'll be playing with it again asap taking
attention to your suggestion.
Then I'm also trying to understand in how the --generate -in-cache
distinguishes itself from the admin generator stuff (doctrine:generate-
admin command).
Cheers, RAPHAEL
--~--~-~--~~---
Hi there
I am trying to appropriately understand what exactly the "--generate-
in-cache" option does in the "doctrine:generate-module" command (also
exists for propel).
The only (and only) documentation on it that I could find says :
- command-line help:
" --generate-in-cache Generate the m
Bernhard
Your approach sounds very compelling. Especially as it allows saving
the entire set of (new or existing) objects once and not before the
user decides to save the entire session (or cancel, alternatively).
But unfortunately I am not (yet) an advanced user of the form system
in such a way
31 matches
Mail list logo