Skip to content
Advertisement

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:

JavaScript

I get the error message:

The return type of method “getParentcategory” in class “AppEntityCategory” is invalid.

Advertisement

Answer

Change

JavaScript

to

JavaScript

Because in your case return type is invalid class

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement