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 3944758
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:56:19+00:00 2026-05-20T00:56:19+00:00

Production: image_id Image: id The ImageForm is embedded on the ProductionForm and the image

  • 0
Production:
  image_id

Image:
  id

The ImageForm is embedded on the ProductionForm and the image is optional. The issue is that when adding an Image to an already existing Production via the embeddedForm and not changing any standard values in the Production form, the main form is not saved (Production has no changes).. except that its image_id needs updating.

I’m in two minds whether the problem is that I’ve incorrectly setup these forms or whether I need to add something into a save method binding.

Note this issue doesn’t occur if the production isNew i.e. you’re adding a new production and image all at once- or if you’re editing a production (i.e. changing its name another field) AND adding an image. Or if you’re editing an image that is already bound.

I understand loosely why this is occurring, and the order Symfony executes saves in forms.. but I don’t know what to add to make this work.

There’s not much code involved thus far, only what is found on the advanced forms jobeet; I’m using $this->embedRelation('Image'); and a post validator + saveEmbeddedForms override to avoid blank images being saved.


In summary: the problem is that if you are adding an image to a production that already exists without changing any values that are stored in the production table, the image is saved, but not related to the production, the image_id stored in the production table remains null.

  • 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-20T00:56:20+00:00Added an answer on May 20, 2026 at 12:56 am

    I got this working with $this->getObject()->setUpdatedAt(date('c'));.. a less hacky solution would be appreciated.

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

Sidebar

Related Questions

I have a certain image called ui-icons_ffffff_256x240.png . In production it can be found,
I have a production issue with In-Proc session state. Our application is base on
If I don't handle view correctly, Production environment show 500. <%= image_tag post.user.image_url %>
I have an image with 2D projection(green one) of a 3D quad(blue one), like
Our production environment runs 3 32-Bit Java 6 JVMs on each Windows 2003 server.
Our production environment is: IIS 6.0 .Net framework 4.0 ASP.Net 4.0 thread pool However,
Moving rails app to production and running into the routing issues. I've read this
On our production servers (win 2003 with IIS6 and load balanced with an F5
Consider a production planning application with many products. Each product has a list of
I'm new and just developing on J2EE. I am modifying an existing application (an

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.