Skip to content
Advertisement

Semantical Error: Class MailileoBundleEntityMatch has no field or association named getMailid

I went through all similar issues but nothing appears to solve my problem. I’ve put a simple query in my MatchRepository but it throws a semantic error.

I’ve double(triple) checked my entity and everything looks fine. It even works fine when I pull all Matches via findAll() and then run a $match->getMailid() The problem appears only in the MatchRepository file.

Here’s the code:

Entity:

JavaScript

Here’s the repository:

JavaScript

and I’m running this via:

JavaScript

Here’s what I’ve tried so far:

  • clearing cache
  • updating entities/DB schema via console
  • restarting server
  • using q.mailid instead of getMailid()

I’m using symfony3.

Any advices? Thanks!!!

Advertisement

Answer

OK as Cerad had suggested I should use a property name not a getter.

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