- Moved withJoin() method of repository into a trait
This commit is contained in:
1 parent
caf5bd9664
commit
c417b00ed4
10 files changed
+205
-118
No files matched your search
@@ -7,7 +7,7 @@ use Ulmus\Repository;
|
||||
|
||||
class Attribute
|
||||
{
|
||||
public static function handleArrayField(null|\Stringable|string|array $field, null|string|bool $alias = Repository::DEFAULT_ALIAS, string $separator = ', ') : mixed
|
||||
public static function handleArrayField(null|\Stringable|string|array $field, null|string|false $alias = Repository::DEFAULT_ALIAS, string $separator = ', ') : mixed
|
||||
{
|
||||
if ( is_array($field) ) {
|
||||
if (count($field) < 2) {
|
||||
|
||||
@@ -17,7 +17,7 @@ class Where {
|
||||
public null|array|\Closure $generateValue = null,
|
||||
) {
|
||||
$this->field = Attribute::handleArrayField($field);
|
||||
$this->fieldValue = Attribute::handleArrayField($fieldValue);
|
||||
$this->fieldValue = Attribute::handleArrayField($fieldValue, false);
|
||||
}
|
||||
|
||||
public function getValue(/* null|EntityInterface */ $entity = null) : mixed
|
||||
|
||||
Reference in new issue
Block a user