Skip to content

Commit 27d66e7

Browse files
committed
interface mixin
1 parent 7a3e592 commit 27d66e7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Interfaces/ModelInterface.php

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
use InitORM\DBAL\DataMapper\Interfaces\DataMapperInterface;
2121
use \InitORM\ORM\Exceptions\{WritableException, ReadableException, UpdatableException, DeletableException};
2222

23-
/**
24-
* @mixin DatabaseInterface
25-
*/
2623
interface ModelInterface
2724
{
2825

src/Model.php

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
declare(strict_types=1);
1515
namespace InitORM\ORM;
1616

17+
use InitORM\Database\Database;
18+
use InitORM\QueryBuilder\QueryBuilder;
1719
use ReflectionClass;
1820
use Throwable;
1921
use InitORM\Database\Facade\DB;
@@ -28,6 +30,10 @@
2830
UpdatableException,
2931
DeletableException};
3032

33+
/**
34+
* @mixin Database
35+
* @mixin QueryBuilder
36+
*/
3137
abstract class Model implements ModelInterface
3238
{
3339

0 commit comments

Comments
 (0)