best practice symfony 4 "validator"

  php, symfony4

Hello symfony family

I am a beginner in symfony

I have a question about the good practice

Eg:
I have two entities Author and article

the condition is: the author cannot add more than one article per day.

where I can add my specific data validation processing.
is it in the controlor or in validator (but this condition is not linked
to a field) or in some other place ??

**#THANK YOU

#Symfony**

Source: Ask PHP

LEAVE A COMMENT