What is repository in doctrine?

2019-05-02 09:42发布

问题:

I wonder what a repository means in doctrine?

Could someone please explain?

回答1:

A repository in a term used by many ORMs (Object Relational Mappers), doctrine is just one of these.

It means the place where our data can be accessed from, a repository of data. This is to distinguish it from a database as a repository does not care how its data is stored.

See the Repository Pattern from Martin Fowlers "Patterns of Enterprise Application Architecture".



标签: doctrine