0

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.

2

1 Answer 1

4
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).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.