Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Annotation, Migrate, and Auto-complete accepted style #10

Open
WanWizard opened this issue Jul 23, 2012 · 1 comment
Open

Annotation, Migrate, and Auto-complete accepted style #10

WanWizard opened this issue Jul 23, 2012 · 1 comment

Comments

@WanWizard
Copy link
Owner

Requested by @devmohsh

Hi all,

i hope that Migration feature will be found in this version, so that we did not need to create Tables, then generate Models, we can create the Models and let's the DM2 create the tables itself?

for this purpose we should add some configurations for the fields and foreign key, it will be amazing if these configuration done by Annotation instead of configurations array

the last feature i request is to take Auto Complete in your mind when you chose the syntax :)

Regards

@WanWizard
Copy link
Owner Author

To start with your last point, the API for 2.0 will be largely the same as for 1.x. A lot of production applications depend on DataMapper, the last thing I want is to introduce a huge migration effort.

For your second point I can be short. Anything PHP should be aware of should be in PHP. I find hiding information the code depends on in comments a horrendous idea, which will not be implemented. If you want that, I suggest you look at Doctrine.

And I don't think migrations should be an integral part of DataMapper. Creating your database structure is a one-time effort, and for migrations there's an excelllent solution available for CodeIgniter from @philsturgeon. At the moment I don't see a reason to duplicate that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant