forked from tighten/parental
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix newFromBuilder when model is totally guarded
- Loading branch information
William Feller
committed
May 19, 2019
1 parent
dbe5468
commit 201664b
Showing
4 changed files
with
40 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Tightenco\Parental\Tests\Models; | ||
|
||
use Tightenco\Parental\HasParent; | ||
|
||
class GuardedChild extends GuardedParent | ||
{ | ||
use HasParent; | ||
} |
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 Tightenco\Parental\Tests\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Tightenco\Parental\HasChildren; | ||
|
||
class GuardedParent extends Model | ||
{ | ||
use HasChildren; | ||
|
||
protected $fillable = []; | ||
|
||
protected $childTypes = ['child' => GuardedChild::class]; | ||
} |