Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
386 views

I am currently working on a symfony 6 project where I came across the following problem: I have to entites "Article" and "ColorPalette". The relationship between the both of these ...
schwaluck's user avatar
  • 155
1 vote
0 answers
59 views

I have two approaches and I need your expertise on the matter... Let's say we call a certain API and store every request data into RequestEntity. And let's say that API call we made initiates some ...
ezepovartur's user avatar
1 vote
1 answer
1k views

I have this error when I try to render the form AvisType: The form's view data is expected to be a "App\Entity\DTO\DocumentDTO", but it is a "array". You can avoid this error by ...
Zabon's user avatar
  • 265
0 votes
1 answer
4k views

In my code, I have implemented OneToMany self-referencing relationship. I have initialized array collection in the constructor. When I send a query parent is added to the children. But when I try to ...
Daumis's user avatar
  • 3
0 votes
1 answer
1k views

I want to display in Twig a string list of "strenghts" for a "strategy" that I get in the controller with ParamConverter (there is a one to many relation, and "strenghts" ...
William's user avatar
0 votes
2 answers
4k views

For my project, I created 2 entities : Recipe & Ingredient. They are a ManyToMany relation. mysql shema I generated everything from the console (entity & CRUD). But, I can't save ingredients ...
Romain 's user avatar
-1 votes
1 answer
89 views

I am trying to load data from my array collection via doctrine: $pages = $this->em->getRepository(Pages::class)->findAll(); The result is: 2 => Pages^ {#1598 ▼ -id: 3 -name: "cat" -...
peace_love's user avatar
  • 6,523
0 votes
0 answers
126 views

I have 2 entities: Category and Article with the following relation: Each Article has One Category. Each Category may have Many Article. The problem : I want to add new category using this form : ...
ben-ju1's user avatar
  • 11
-1 votes
1 answer
146 views

Every user has multiple sports so I have created table users and table sports and table usersport. I want that the user select multiple sport and store it in table user sport user entity ...
hlel khalifa's user avatar
-1 votes
1 answer
42 views

In my entity documents I have a field called linkedDocuments: class Documents { /** * @ORM\ManyToMany(targetEntity="App\Entity\Documents") * @ORM\JoinTable(name="documents_documents", * ...
peace_love's user avatar
  • 6,523
0 votes
1 answer
179 views

I have a Symfony 4.2 application. There are Entities Game and GameGenre. They have ManyToMany relation between each other. I am trying to load fixtures and receive the following error: Could not ...
Varg's user avatar
  • 422
0 votes
3 answers
5k views

I have XML in the format <POS> <Source PseudoCCode="BOA" ISOCountry="US" AgentDutyCode="J114N"> <RequestorID Type="11" ID="T921"> <CompanyName Code="CP" ...
MB.'s user avatar
  • 723
1 vote
0 answers
349 views

My Setup is a Symfony 3.4 App with the typical 'ManyToMany'-Relation with additional fields, something like this: Entity Article Entity Specialty Entity ArticleSpecialtyRelation In a Form for an ...
Benjamin Kozlowski's user avatar
4 votes
1 answer
3k views

I am using Symfony 2.8 I have a many to many relationship between User and Sectors entities, the insertion works well but the creation of the edit form (the editAction function) does not work. All the ...
Abha Rana's user avatar
  • 215
1 vote
2 answers
3k views

In my entity: /** * @ORM\ManyToMany(targetEntity="Productgroup", inversedBy="fields") * @ORM\JoinColumn(name="productgroup", referencedColumnName="id") */ private $productgroup; public ...
peace_love's user avatar
  • 6,523
-3 votes
2 answers
2k views

My controller: /** * @Route("/row/{slug}/{connect}/{field}/{productgroup}", name="row", methods={"POST"}) */ public function row($slug, $connect, $...
peace_love's user avatar
  • 6,523
-1 votes
1 answer
2k views

animals: | id | name | |----|------| | 1 | cat | | 2 | dog | | 3 | frog | category: | id | name | |----|--------| | 1 | green | | 2 | blue | | 3 | orange | animals_category: | ...
peace_love's user avatar
  • 6,523
0 votes
2 answers
23k views

So I have this result from database: object(Illuminate\Support\Collection)#538 (1) { ["items":protected]=> array(3) { [0]=> object(stdClass)#536 (3) { ["...
Eem Jee's user avatar
  • 1,319
0 votes
2 answers
2k views

For the past couple of days I have been trying to create a bidirectionnal ManyToOne-OneToMany relationship in Symfony 3.4 I have two entities. One is Contribution and the other is Source. A ...
Shaker81's user avatar
1 vote
0 answers
215 views

This is maybe a stupid question but I can't figure it out... I am trying to build a basic parent/child entity for a forum in doctrine. I have defined my entities and the relationship ManyToOne. I ...
Shaker81's user avatar
0 votes
1 answer
3k views

I have this classes: AbstractBillingInvoice /** * @ORM\Table(name="billing_invoice") * @ORM\Entity(repositoryClass="BillingBundle\Repository\AbstractBillingInvoiceRepository") * @ORM\...
Darius Radius's user avatar
0 votes
1 answer
1k views

I need your help on my problem for saving my data in table. I use fosUserBundle and have different user types (Admin, Pro, Client) that are classes extending a base User entity. I also have a Language ...
Bienchris's user avatar
0 votes
2 answers
1k views

I have a Product Entity. Each product can have 0 or N pictures. I have a ProductPhoto Entity which has a order property (0 = first). On a page, I list all the pictures of my current product. I would ...
Eve's user avatar
  • 836
4 votes
2 answers
814 views

My model contains two related classes - RealEstate and Image, and for one instance of RealEstate can be a lot of Image's instances. Since the Image class can also be used in association with other ...
Vitaly Vesyolko's user avatar
0 votes
1 answer
380 views

I have 3 entities, army, weapon and unit. With army and unit I don't have any problem, but when I persist weapon (it is the inverse side of army and unit) doctrine saves all in the database except the ...
Ernest Riccetto's user avatar

1
2 3 4 5
7