I extended ContentNode entity adding a new field ‘image’. And on my custom frontend controller I’m passing the image to the view. And everything is working as intended.
My problem now is that I’m writing a functional test for my controller and I’m having this issue when it executes the request:Shell1Neither the property "image" nor one of the methods "image()", "getimage()"/"isimage()" or "__call()" exist and have public access in class "Oro\Bundle\WebCatalogBundle\Entity\ContentNode".
The ‘image’ is called on my twig file, of my custom page, and this is a twig exception.
Looks like on functional tests there are no access to extended generated classes, am I right?
An approach I tried was create a Stub class that extends ContentNode, but I got the error ‘Class ContentNodeStub not found’.
Are there a way to solve this? How can we access custom fields (added to core entities) on functional tests?
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.