Ok, I've been trying to get this to work properly for a few days now
and have made a little progress but cannot get this to fully work.
So My model looks something like this:
{{{
#!yaml
User:
columns:
first_name: string(255)
last_name: string(255)
Email:
columns:
user_id: intege
Well, you get that error because when you embed it with a name of Email, it
tries to set something to a Doctrine record which is a collection, and you
are passing it a single piece of data.
Try:
for ($i = 0; $i < 5; $i++)
{
$form->embedForm('Email[' . $i . ']', new EmailForm());
}
On Tue, Nov
On Nov 10, 4:25 am, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> The values are populated when you instantiate the form initially like so:
>
> $form = new sfForm($initialValues);
> and when you do:
> $form->bind($tainedValues);
So, combining your two answers, the $form->bind($taintedValues) pas
Ah, ok yes, I have that method ;)
Any take on the doClean question?
--~--~-~--~~~---~--~~
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 u
I am not sure at which point the doClean() is invoked but bind() is the
first part that is necessary for it to occur.
I am not sure why it isn't working for you though.
- Jon
On Tue, Nov 11, 2008 at 12:14 PM, juro <[EMAIL PROTECTED]> wrote:
>
> Ah, ok yes, I have that method ;)
>
> Any tak
This works: http://pastebin.com/m1db73fde
I think though that this should work:
class UserForm extends BaseUserForm
{
public function configure()
{
foreach ($this->getObject()->getEmails() as $email)
{
$this->embedForm('Emails[' . $email['id'] . ']', new
EmailForm($email));
Hi,
I created a task calling the data-load task of propel in sf 1.1.
It seems that the application.log logs are always sent and are
'spamming' my outputs.
I'm not used to the new event system. Is there a way to stop these
logs from appearing in tasks.
Right now the logs appearing are the sfDebug
Hi,
I have a doubt about the best way for save static data i18n in
database. For instance, for save a list of countries that is related
with other tables.
I found two possible solutions, each with advantages and
disadvantages.
1. Translate the data in database:
Country:
actAs:
I18n:
Really nice site :D
Benjamin
On Nov 10, 5:47 am, Lee Bolding <[EMAIL PROTECTED]> wrote:
> Hi Gang,
>
> We launched a new Symfony application last Thursday, and thought you
> may like to check it out.
>
> http://lastminute.visualdna.com
>
> It took 20 days with 2 developers (1 frontend develope
Not sure about Propel but in Doctrine, what you are trying works. You can
also simply override the setTableDefinition() in
lib/model/doctrine/sfDoctrineGuardPlugin/sfGuardUser.class.php and add
you're columns there.
- Jon
On Tue, Nov 11, 2008 at 2:21 PM, ken <[EMAIL PROTECTED]> wrote:
>
> I need
I need suggestion on how to override plugin schema.yml in a project
level. I really dont want to change anything in a plugin except the
contents of om and map directory.
In the case of sfGuardPlugin, I needed to add 2 more column for
profile cacheing support so I copied plugins/sfGuardPlugin/conf
On 11 Nov, 07:49, Frank Stelzer <[EMAIL PROTECTED]> wrote:
> all of this cached stuff to MemCached (overwriting sfConfigCache), but
> i am not sure, if this would be the best solution.
>
In your factories.yml set your view_cache class to sfMemcacheCache
with the right parameters:
http://tra
Im not yet sure if im ready to migrate to doctrine, but i really need
this for propel. Im using svn deployment.
On Nov 12, 4:25 am, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> Not sure about Propel but in Doctrine, what you are trying works. You can
> also simply override the setTableDefinition(
I could be wrong but I don't think this is possible with Propel.
- Jon
On Tue, Nov 11, 2008 at 2:55 PM, ken <[EMAIL PROTECTED]> wrote:
>
> Im not yet sure if im ready to migrate to doctrine, but i really need
> this for propel. Im using svn deployment.
>
> On Nov 12, 4:25 am, "Jonathan Wage" <[E
As a stop gap solution, I hosted myself the plugins that I'm using and
renamed all plugins' shema.yml to shema.yml.tmp.
And then just copied them to config with .schema.yml
format.
I just hope there's a better way.
Regards,
Ken
On Nov 12, 4:59 am, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> I
Jon,
Thanks for the quick reply.
With my knowledge of Doctrine, that's what I assumed the first error
which is why I had tried Email[] and I had tried Email[0] before that
as well. When I tried your code I get the same problem as with just
Email[]
{{{
Unexpected extra form field named "Email"
This does not fail validation, and it saves both objects; but it
doesn't save them related to each other. The Email['user_id'] is left
null after this form submittal.
I have submitted a ticket for this: http://trac.symfony-project.org/ticket/4906
-- Stephen Ostrow <[EMAIL PROTECTED]>
On Nov 11
On Nov 11, 2:49 am, Frank Stelzer <[EMAIL PROTECTED]> wrote:
> However every web server has to process its cache folders on their
> own. This is redundant work and i want to get rid of it.
>
> I see those "easy" possibilities:
> - shared folder (bottle neck, not scalable)
> - rsync every x minu
Well, that's a good question. Probably I copied that code from somewhere
else. Anyway I tried the view without those parameters and the issue remains
...
On Mon, Nov 10, 2008 at 4:58 PM, Eno <[EMAIL PROTECTED]> wrote:
>
> On Nov 7, 3:29 pm, Samir <[EMAIL PROTECTED]> wrote:
>
> > $response->se
On Nov 7, 5:29 pm, Samir <[EMAIL PROTECTED]> wrote:
> Well, when I call the URL of the action
> (eghttp://.../frontend_dev.php/offer/thumb?offer_id=1)
> all I get is a text message:
> "http://karhabti/frontend_dev.php/offer/thumb?offer_id=1"; instead of the
> expected image.
What I would do is
"saveRelationNameList()"
Where "RelationName" is the name of your relation ;)
The form generator generates the code in your form classes to handle the
saving of each m2m relationship. So if you have a User that hasMany
Phonenumbers then you would find a savePhonenumbersList() function.
- Jon
On
hi all
i think the form framework is great, but .
When I bind a form to a request array the values in the object are wiped,
e.g. if I set the a user_id field before the bind, it is set to null after.
So any data that is in the record is wiped and replaced by the data in the
request array. For
Is it possible to have auto_link_text parse an external URL and make
the appropriate format?
I.e. I could pass it www.google.com or http://www.google.com and it
would create the anchor tag with the http://?
TIA,
Nic
--~--~-~--~~~---~--~~
You received this message
Why would you want to share your cache directories?
I can only see negative impact for doing this... with each machine
having its own cache directory, you don't affect the whole cluster
when you issue a clear-cache, there's no SPOF... above all, it's less
work to set up and maintain.
On 11
Whenever I call genUrl from a task I get the url prefixed with './
symfony'. Setting absolute to true/false does not make a difference.
I have tried doing this:
$_SERVER['HTTP_X_FORWARDED_HOST'] = 'myhost';
sfConfig::set('sf_no_script_name',true);
sfConfig::set('sf_relative_url_root','');
echo s
Does anyone have any idea where to get the latest (3?) Mojavi source?
It seems the site has returned with regular blog posts from this year...
yet no links to download code.
--
Ant Cunningham
Graphic Designer | Web Developer
Vector Based Design
--~--~-~--~~~---~--~
26 matches
Mail list logo