79594679

Date: 2025-04-27 04:52:35
Score: 1
Natty:
Report link

I managed to fix this by adding a new method in the entity.

public function getIsBookable(): ?bool
{
    return $this->isBookable();
}

I guess behind the scenes ApiPlatform calls something like `$entity->get{$field}` instead of the classic symfony getter

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jerem