Skip to content

Work with entities and validation bug #472

Description

@s524797336

If model set $returnType="App\Entities\xxx" and validation with required_with[xxx]
Because entity have a protected var $datamap and have a array value.

See system/Validation/Rules on line 308
$requiredFields = array_intersect($fields, $data);
Because $data have a array datamap key so it will return a Array to string conversion exception
Is it a bug or i'm not using it right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions