Skip to content

Commit

Permalink
interface mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammetsafak committed Dec 15, 2023
1 parent 7a3e592 commit 27d66e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Interfaces/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
use InitORM\DBAL\DataMapper\Interfaces\DataMapperInterface;
use \InitORM\ORM\Exceptions\{WritableException, ReadableException, UpdatableException, DeletableException};

/**
* @mixin DatabaseInterface
*/
interface ModelInterface
{

Expand Down
6 changes: 6 additions & 0 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
declare(strict_types=1);
namespace InitORM\ORM;

use InitORM\Database\Database;
use InitORM\QueryBuilder\QueryBuilder;
use ReflectionClass;
use Throwable;
use InitORM\Database\Facade\DB;
Expand All @@ -28,6 +30,10 @@
UpdatableException,
DeletableException};

/**
* @mixin Database
* @mixin QueryBuilder
*/
abstract class Model implements ModelInterface
{

Expand Down

0 comments on commit 27d66e7

Please sign in to comment.