Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repository pattern#71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
domnikl merged 2 commits intoDesignPatternsPHP:masterfromandrewnester:master
May 18, 2014
Merged

Repository pattern#71

domnikl merged 2 commits intoDesignPatternsPHP:masterfromandrewnester:master
May 18, 2014

Conversation

andrewnester
Copy link
Contributor

Implemented repository pattern

@domnikl
Copy link
Contributor

@Avalon1747 always good to have an autoresponder answering to Github issues ;-)

@andrewnester Can you please fix the two things I commented. Other parts look good, so I will merge it then.

@domnikl
Copy link
Contributor

@andrewnester can you please update the PR so I can merge it?

@andrewnester
Copy link
ContributorAuthor

@domnikl yes, of course, sorry, I was on vacation

@andrewnester
Copy link
ContributorAuthor

@domnikl btw, seems like doc blocks are ok, where it is not?

@malukenho
Copy link

This isRepository of ddd concepts?

@minhquy87tb
Copy link

DomniKl you can support Repository pattern using in Laravel 4 Illuminate package ! RepositoryInterface and way to using it ! thank u !

@domnikl
Copy link
Contributor

@minhquy87tb I have never worked with Laravel 4, so I don't know the details to their repositories. The patterns should be similar, though. This repository should not intend to explain any implementation in any framework in detail.

@malukenho Repositories in DDD are defined as: "Mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects.". So yes.

@malukenho
Copy link

@domnikl 👍


public function __construct()
{
$this->data = array();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Why this has that to be inside of the__constructor() method?
Why not to inicializar alone they?
like ...

private$data =array();private$lastId =0;

It has some specific reason for this?

@domnikl
Copy link
Contributor

@andrewnester Looks good now, will merge this in in the next few days. Thank you for adding it!

domnikl pushed a commit that referenced this pull requestMay 18, 2014
@domnikldomnikl merged commit4aedcff intoDesignPatternsPHP:masterMay 18, 2014
@domnikl
Copy link
Contributor

Merged. Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@andrewnester@domnikl@malukenho@minhquy87tb@swappio

[8]ページ先頭

©2009-2025 Movatter.jp