2

How can I generate Entities for Database using Doctrine and Codeigniter?

I found this line

$ php bin/console doctrine:mapping:import --force AcmeBlogBundle xml

But I did not know where I have to write it or how can I open the console of doctrine?

1 Answer 1

1

This code line runs in terminal, go to your project directory and run this command finally create entity file but just create database mapping not complete entity.

Use examples below,

Create entity mapping

php bin/console doctrine:mapping:import --filter="FollowedLink" ApiBundle annotation

Create Entity

php bin/console doctrine:generate:entities ApiBundle/Entity/FollowedLink
Sign up to request clarification or add additional context in comments.

3 Comments

thank you. I link the terminal with php.exe and using your lines, but I get this error C:\Users\Mahfouz>php bin/console doctrine:mapping:import --force AcmeBlogBundle XML Could not open input file: bin/console C:\Users\Mahfouz>
This command for symfony 3 framework, doctrine document page for about this topic Doctrine Console
How i can do it for Codeigniter

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.