Skip to content

Howto insert with document validation of type "long". #589

Closed
@drupal-daffie

Description

@drupal-daffie

How do I insert data in a collection when the collection has a validation on it with for a particular column of the type "long". This is used for 64 bit integers. When I try to a large integer the response that I get is that the document validation failed. With other special columns you create first object and insert that object as the column value (Decimal128). Using the Int64 class is not possible, because the construct method is private. Has anybody have an idea/example how to fix my problem.

I am using: PHP 7.1 and version 1.4.2 of this project and MongoDB 3.6.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions