Skip to content

Commit ebb572d

Browse files
authored
Merge pull request #8 from josemachado94/master
Fix erros with UF 4.6
2 parents 810d7e4 + ee6d2d5 commit ebb572d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Database/Migrations/v400/MembersTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace UserFrosting\Sprinkle\ExtendUser\Database\Migrations\v400;
33

4-
use UserFrosting\System\Bakery\Migration;
4+
use UserFrosting\Sprinkle\Core\Database\Migration;
55
use Illuminate\Database\Schema\Blueprint;
66
use Illuminate\Database\Schema\Builder;
77

src/Database/Models/Member.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function aux()
113113
*/
114114
protected function createAuxIfNotExists()
115115
{
116-
if ($this->auxType && !count($this->aux)) {
116+
if ($this->auxType && is_null($this->aux)) {
117117
// Create aux model and set primary key to be the same as the main user's
118118
$aux = new $this->auxType;
119119

0 commit comments

Comments
 (0)