Started the project of digging, I saw that there are working with doctrine, Repository, Entity.
As I understand it, the repositories mostly queries are made, and the entity simply describes the structure of the table? (Saw a column tipo
private $id; ... and with annotations what are.
In General, then, in simple, human terms why we need a repository and entity?