Entity and Repository is the difference?

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?
June 14th 19 at 18:21
0 answer

Find more questions by tags Doctrine ORM