Skip to content

Releases: Daveawb/Repos

Added pagination options

11 Dec 09:55
f11ab47
Compare
Choose a tag to compare
Merge pull request #7 from kuba81/master

Adds current page override for Repository::paginate()

Removed dependency on DI container for criteria

24 Oct 06:53
Compare
Choose a tag to compare

Criteria are now instantiated with the arguments that you provide, dependency injection of any unresolved classes need to be resolved prior to being passed as arguments to the criteria.

Bug fix release

20 Oct 14:23
Compare
Choose a tag to compare

Moved composer dependencies into correct locations

Support for Laravel 5.4 makeWith

31 Jul 15:56
Compare
Choose a tag to compare
  • makeWith will be used by default to build Criteria class'. A fallback allows for the use of make($class, array $args) for older versions of Laravel.

Breaking changes to update

30 Mar 08:29
Compare
Choose a tag to compare

Update now fetches a model, updates it using the models fill method, persists and returns.

PDO Exception handling during updates

28 Mar 15:36
Compare
Choose a tag to compare

When a pdo error is not encountered but 0 rows have been updated an EmptyChangeSetException is thrown.

Flushing models on create is optional

17 Mar 14:01
Compare
Choose a tag to compare

Optional flag to allow flushing models via flag on create.

$repository->create($attributes, Repository::NO_FLUSH);

$repository->create($attributes, Repository::FLUSH);

Type hinting improvements

03 Mar 11:12
Compare
Choose a tag to compare

Bumped version of Laravel to 5.3 to match type hints.

Model updating

30 May 14:56
Compare
Choose a tag to compare

Added a new method updateModel that takes an array of data and an existing model. It returns a boolean indicating whether the update modified the model.

New instance capability

27 Nov 09:19
Compare
Choose a tag to compare

The repository can now create a fresh instance of itself using $repository->newInstance()

  • Tests moved to in memory sqlite