- Moved withJoin() method of repository into a trait

This commit is contained in:
Dave Mc Nicoll committed 2026-10-22 17:16:36 +00:00
1 parent caf5bd9664
commit c417b00ed4
10 files changed
+205 -118

No files matched your search

+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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