Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:12:19+00:00 2026-05-27T20:12:19+00:00

I have a problem and don’t really know where to look for the cause

  • 0

I have a problem and don’t really know where to look for the cause of it. I have a propel form that is created basing on an object. The object is not empty:

$form = ModelNameForm($modelObject);

then I do binding with the request data:

$form->bind(
  $request->getParameter($form->getName()), 
  $request->getFiles($form->getName())
);

validate:

$form->isValid();

and finally save:

$result = $form->save();

The thing is that after binding the $form->getObject() returns the initial object although the $request->getParameter($form->getName()) contains correct values. What’s more interesting is that after $form->save() the $form->getObject() gets the right values. The cause of it can be in the code but I don’t have a clue where to look for it. Under what circumstances the form object may contain the old data after binding but show the new when I do var_dump after saving?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:12:20+00:00Added an answer on May 27, 2026 at 8:12 pm

    This is the expected behavior of an sfForm. When you bind tainted values to the form its contained object won’t know anything about those new values until you save the form. Binding allows you to validate the form, and if validation passes then you pass those new values into the object by calling $form->save(). I would suggest reading the symfony 1.4 Forms guide here: http://www.symfony-project.org/forms/1_4/en/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a problem that I don't really know how to go about.
i have a problem, that i don't know how to solve it. i have
I don't know where to look for about this problem ... I have three
I have a problem that I don't know how to solve. I have have
I have this problem and really don't know how to solve this. I'm having
I just don't know how to explain my problem. So I have created an
I have a lite problem i don't really know how to fix. In my
I have problem in sorting an array in ascending form and i don't know
I have a problem I don't know how to solve. I have an Indy10
I have a problem which I don't know how to fix. It has to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.