Reputation: 4169
I have a given table that I would like to insert into my db. I know S2 can create a table from an entity, but is the opposite possible? I mean, is it possible to create an entity from a given table?
Otherwise, I guess I'll just have to create an entity to correspond to my table structure.
Upvotes: 0
Views: 80
Reputation: 786
php app/console doctrine:mapping:import AcmeBlogBundle annotation
php app/console doctrine:generate:entities AcmeBlogBundle
This is a example from official documentation.This code creates all entities from your db(if you had specified your db in config file).
Upvotes: 4