Skip to content

Commit

Permalink
Merge pull request #8 from HexMakina/packaging
Browse files Browse the repository at this point in the history
Packaging
  • Loading branch information
HexMakina authored Aug 11, 2021
2 parents 202de5b + c4eedf3 commit 593ec87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TightModelSelector.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tion<?php
<?php

namespace HexMakina\Crudites;

Expand Down Expand Up @@ -38,7 +38,8 @@ public function statement() : SelectInterface

public function select($filters = [], $options = []) : SelectInterface
{
$this->statement()->table_alias($options['table_alias'] ?? get_class($this->model)::table_alias());
$this->statement = $this->model_table->select(null, $options['table_alias'] ?? get_class($this->model)::table_alias());
// $this->statement()->table_alias($options['table_alias'] ?? get_class($this->model)::table_alias());

if (!isset($options['eager']) || $options['eager'] !== false) {
$this->statement()->eager();
Expand Down

0 comments on commit 593ec87

Please sign in to comment.