Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sviiiter/yii1-repository-example
use Active Record in Repository pattern context
https://github.com/sviiiter/yii1-repository-example
activerecord repository-pattern yii
Last synced: 2 days ago
JSON representation
use Active Record in Repository pattern context
- Host: GitHub
- URL: https://github.com/sviiiter/yii1-repository-example
- Owner: sviiiter
- Created: 2021-09-27T16:56:10.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-27T17:17:56.000Z (about 3 years ago)
- Last Synced: 2024-11-06T05:43:38.875Z (about 2 months ago)
- Topics: activerecord, repository-pattern, yii
- Language: PHP
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Implemintation of Repository pattern for ActiveRecord(yii1 example)
## The sketch described how to use Active Record in Repository pattern context
Profit:
- available to test
- divide Active Record model and extracting data````
$repo = (new ProductStoreRepository(new FromProductStrategy($product->stores)));$a = $repo->enabled();
$b = $repo->getWeaks();
$c = $repo->notEmpty();````