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

  • Home
  • SEARCH
  • 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 6554029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:39:07+00:00 2026-05-25T12:39:07+00:00

I have a entity called Container in a Symfony application, which I have included

  • 0

I have a entity called Container in a Symfony application, which I have included in the schema.yml file:

Container:
  columns:
    id:    { type: integer, primary: true, autoincrement: true }
    name:  { type: string(127), notnull: true }

Strain:
  columns:
    id: { type: integer, primary: true, autoincrement: true }
    ...
    container_id: { type: integer }
    ...
  relations:
    Container:  { foreignAlias: Strains }

Then I have regenerated the models, forms and filters using the symfony doctrine:build --all-classes task.

Now when I try to use $strain->getContainer(), e.g. in a showSuccess action, it returns no object at all. I have double-checked that container_id has a reference to a record in container table.

Moreover, when I try to edit a Strain object and unlink the relationship with Container, the form is saved correctly, but the container_id column keeps the old value.

Do you know if Container is a reserved word or something like that in Symfony or Doctrine? What can be happening?

Thanks!

  • 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-25T12:39:07+00:00Added an answer on May 25, 2026 at 12:39 pm

    No, it isn’t a reserved word.
    (In fact, I have a model in my project with a Container relation).

    Have you tried setting the local property on Container relation to container_id?

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

Sidebar

Related Questions

I have an abstract entity called Block which contains two attributes: column and order
I have a db.BlobProperty property (called Icon) in my entity which contains an image
I have an entity called Requests which has a navigation called StatusHistories I need
I have an entity set called Entities which has a field Name and a
I have an entity called Band which has a to-many relationship to a Category
I have an application that contains a business entity called a 'Task'. This entity
I have Entity Framework entities Events which have an EntityCollection of RSVP. I want
I have an entity that maps to an external oracle table which is one
I created an Entity Framework file. My database is called MyDB. My Entity Framework
Imagine I have an entity called Product and a repository for it: public class

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.