database - ZF, How to generate Entities with Doctrine 2 -


I have recently decided to try 2 principles. I partly manage to integrate Z. The command line works and I manage to query the database. The problem comes with the generation of my differents entities, proxy ...

First, with principle 1.x, we can generate, can start from our database, YML files and business sections .

Now, with Principle 2, we have to generate organizations with mapping files (metadata in YML, XML, ...). But the file can not be generated with DB in principle 2 (I could not find anything about it ...).

So, I created the DSB YML files with MySQL Workbench but these files are not compatible with Principle 2.

Fortunately, there is some usefulness in converting YML into theory theory. But I get any other problem: I do not know this or is not helping it!

Perhaps someone told me better than the theory and could help me? My problem is changing:

  The principle can not be mapped to 1 type 'float'!  

This is a YML part that has a problem:

  tVenue: tableName: t_venues column: ven_id: type: integer (4) primary: is not true True true: autoincrement: true ven_title: type: string (250) default: null ven_adress: type: clob (65535) notnull: true ven_zip: type: string (10) notnull: true cit_id: type: integer (4) notnull: true cit_label : Type: string (150) notnull: true ven_lat: type: float default: null ven_long: type: float default: null index: cit_id: fields: [cit_id] option: charset: utf8 collate: utf8_unicode_ci   I check that this declaration was standard for theory 1. 

Is anyone an idea? Thank you.

For float problem:

Try decimal Instead of float , it maps to a PHP double.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -