php - Doctrine 2 - MySQL data type Double in YAML -



php - Doctrine 2 - MySQL data type Double in YAML -

i'm using codeigniter doctrine 2 codeigniter2. used yaml schema files define database schema. want define 2 columns in table mysql data-type double. below yaml mapping tried

entities\location: type: entity table: locations fields: id: type: integer id: true generator: strategy: auto name: type: string length: 40 nullable: false longitude: type: double latitude: type: double

but code throws error when seek create models yaml.

entities created successfully.

the error messages are:

class double not exist while trying create proxies

and

unknown column type double requested while trying create schema

in 1.2 think 'float' or 'decimal'. seek 1 of those.

here's reference 1.2 docs... i'm struggling find 2.x docs same thing.

http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/pl

php double yaml doctrine2

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -