Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Data with 'type' => 'integer' in MongoSchema goes to db as String #51

Open
DmitriySalko opened this Issue · 1 comment

2 participants

@DmitriySalko

Hello

I'm using datasource with CakePhp 2.0

When adding documents, it ignores integer type set in MongoSchema and inserts data as string.

Anyone has a solution?

thanks!

@dcaravana

For what I see, there's no type conversion based on the schema types, so you must convert it before saving (e.g. when the data comes from a web form).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.