Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo082 committed Feb 25, 2017
1 parent d4ab911 commit 91f1c73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,11 @@ Your method must a static method and take in parameters user and entity object.
public static function checkAdd(User $user, Flight $obj = NULL) {
return $user->isUnabled();
}

When DBM list your entity, you can also choose your method repository. By default, DBManager use `findAll()` but you can
override this easily :

Flight:
fullName: AppBundle:Flight
listingMethod: myRepositoryMethod

0 comments on commit 91f1c73

Please sign in to comment.