This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue #26: A new record is not saved if it is not dirty.
- Loading branch information
Showing
6 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php namespace Dimsav\Translatable\Test\Model; | ||
|
||
use Illuminate\Database\Eloquent\Model as Eloquent; | ||
|
||
/** | ||
* A test class used as a normal class extending Eloquent, not using laravel-translatable. | ||
*/ | ||
class Company extends Eloquent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php namespace Dimsav\Translatable\Test\Model; | ||
|
||
use Dimsav\Translatable\Translatable; | ||
use Illuminate\Database\Eloquent\Model as Eloquent; | ||
|
||
/** | ||
* A test class that has no required properties. | ||
*/ | ||
class Continent extends Eloquent { | ||
|
||
use Translatable; | ||
|
||
public $translatedAttributes = array('name'); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php namespace Dimsav\Translatable\Test\Model; | ||
|
||
use Illuminate\Database\Eloquent\Model as Eloquent; | ||
|
||
class ContinentTranslation extends Eloquent { | ||
|
||
} |