eloquent-versioning icon indicating copy to clipboard operation
eloquent-versioning copied to clipboard

:books: Laravel 5 Eloquent ORM extension to support revisions/versioning

Results 13 eloquent-versioning issues
Sort by recently updated
recently updated
newest added

Return an array when an array is expected, and don't treat it as a collection after it's returned. Resolves issue #21

When adding a versioned attribute that also has a accessor or cast of some kind, the current code retrieves the _accessor_/_casted_ version and attempts to store that, instead of the...

A test for scrutinizer, this should now generate code coverage as well.

```php $storedFile = Storedfile::findOrFail($id); $storedFile->forceDelete(); ``` Outputs error: Call to a member function toArray() on array exception | Symfony\Component\Debug\Exception\FatalThrowableError file | \vendor\proai\eloquent-versioning\src\BuilderTrait.php

Hi all, I am trying to optimize the queries I'm using in my app and I would like to access only once to retrieve all versioned models. Now, I'm doing...

Hi guys ! Inspired by #17 , i try this in order to make some relationships work : **App\Custom\ProAI\Versioning\Versionable.php** ```php

Syntax error or access violation: 1068 Multiple prima ry key defined (SQL: alter table `mytable_version` add primary key `mytable_version_version_primary`(`version `)) with code: ``` Schema::create('mytable_version', function(Blueprint $table) { $table->integer('ref_id')->primary(); $table->integer('version')->primary(); //add...

help wanted

If versioned fields are not changed new version should not be created

https://github.com/ProAI/eloquent-versioning/issues/21