DesignPatternsPHP | sample code for several design patterns in PHP | Architecture library
kandi X-RAY | DesignPatternsPHP Summary
kandi X-RAY | DesignPatternsPHP Summary
Read the Docs of DesignPatternsPHP or Download as PDF/Epub. This is a collection of known design patterns and some sample codes on how to implement them in PHP. Every pattern has a small list of examples. I think the problem with patterns is that often people do know them but don't know when to apply which.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DesignPatternsPHP
DesignPatternsPHP Key Features
DesignPatternsPHP Examples and Code Snippets
Community Discussions
Trending Discussions on DesignPatternsPHP
QUESTION
What is the name for the design pattern that handles database tables through "managers"?
These "managers" are responsible for CRUD operations on 1 database table only. I'll call this pattern the "Table manager" pattern, but I guess that not proper.
So my question is: What is the name for the design pattern that handles CRUD operations for one database table through a "manager"? See picture below.
I guess it's one of these:
- Facade: https://refactoring.guru/design-patterns/facade
- Command: https://refactoring.guru/design-patterns/command
- Table Module: https://www.martinfowler.com/eaaCatalog/tableModule.html
- Table Manager: https://web.cecs.pdx.edu/~antoy/Courses/Patterns/www.mindspring.net/%257Emgrand/pattern_synopses3.htm
- Data Mapper: https://designpatternsphp.readthedocs.io/en/latest/Structural/DataMapper/README.html
But I'm not sure.
...ANSWER
Answered 2019-Feb-08 at 16:00I want to answer my own question. The answers made by the Commentators were correct.
I want to add that Doctrine calls this pattern the: EntityRepository
.
Why does this matter? It is because the main project of Doctrine is ORM. Many Frameworks makes use of Doctrine ORM including: Symphony, Drupal, Laravel, PHPUnit, TYPO3.
See these links:
See code samples:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DesignPatternsPHP
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page