Jihad Mahfouz
Jihad Mahfouz

Reputation: 108

Generate Entities of database using doctrine with codeigniter

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?

Upvotes: 2

Views: 918

Answers (1)

Deniz Aktürk
Deniz Aktürk

Reputation: 362

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

Upvotes: 1

Related Questions