I use Api Platform & Symfony (5.4) + php 7.2.5 I created an Entity by myself, I just added one file in /src/Entity and it’s not working. I refresh, I cleared cache, I adde @ApiResource… But the Entity is not visible in the doc page in API Platform. Have you an idea where the error is ? Thanks ! Here
Tag: entity
Symfony 6 data access and transmission between multiple tables with format error [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 10 months ago. Improve this question
Entity not found with Symfony 5.1
I have an issue with an Entity. The goal is to display a Form which the user can use to change his personal information like the Email or password. I created a form for that, but when I created the /Edit Route I get the following error: “AppEntityUsers object not found by the @ParamConverter annotation.” Here’s my Controller: Here’s the
How to Add message to the @Assert?
I am trying to customize Symfony validator messages! * @UniqueEntity(fields={“email”}, message=”The Email is already used.”) The unique entity error message works perfectly fine and shows up like …
How can I connect my entity field to the same entity?
I added to my entity “Category” a field “parentcategory” to be able to connect a category to another category: class Category { /** * @ORMId() * @ORMGeneratedValue() * @ORMColumn(type=”…
Doctrine : Default value on joinColumn field
New to symfony2 and Doctrine. How can I set a default value to the field foo_id (which is a reference on Foo table) to point on the ID 1 of the Foo table (which exists in all cases) ? I tried a lot of things without success : Set default value to ID 1 in the constructor of Foo Perform
XXX is not a valid entity or mapped super class // and config options
I just started to use Doctrine2 and I have an error when I want to persist an entity. Here is my error: ‘Class “Myappappentityuser” is not a valid entity or mapped super class.’ eAccelerator is not installed on my computer. My app (I don’t use Symfony) structure is like that: MyApp app entity core external Doctrine And I initialize Doctrine
Working with two entity managers in the same bundle in Symfony2
I’m trying to work with two entity managers for the same bundle. My configuration is like this: Is there any way to tell which entities belong to which entity manager? It crashes now if I want to work with a table which doesn’t belong to the default entity manager. UPDATE here is my configuration for the connection: Answer For using