I have this function:
In Order.php
:
public function isReadyForPackingSlip(): bool
{
// some code
}
And in twig:
{% if order.isReadyForPackingSlip %}
I get this error:
Neither the property "isReadyForPackingSlip" nor one of the methods "isReadyForPackingSlip()", "getisReadyForPackingSlip()"/"isisReadyForPackingSlip()"/"hasisReadyForPackingSlip()" or "__call()" exist and have public access in class "AppEntityPlatformOrderOrder".
I dont want to change the funciton name… how can I work around this?
The twig shouldnt throw error when calling this function.