Symfony 2 WordPress Entity generation

,
php app/console generate:doctrine:entity


 Welcome to the Doctrine2 entity generator



This command helps you generate Doctrine2 entities.

First, you need to give the entity name you want to generate.
You must use the shortcut notation like AcmeBlogBundle:Post.


The Entity shortcut name: BloggerBlogBundle:Wordpress

Determine the format to use for the mapping information.

Configuration format (yml, xml, php, or annotation) [annotation]:

Instead of starting with a blank entity, you can add some fields now.
Note that the primary key will be added automatically (named id).

Available types: array, simple_array, json_array, object,
boolean, integer, smallint, bigint, string, text, datetime, datetimetz,
date, time, decimal, float, blob, guid.

New field name (press  to stop adding fields): post_title
Field type [string]:
Field length [255]:

New field name (press  to stop adding fields): post_date
Field type [string]: datetime

New field name (press  to stop adding fields): post_status
Field type [string]:
Field length [255]:

New field name (press  to stop adding fields): post_type
Field type [string]:
Field length [255]:


New field name (press  to stop adding fields):

Do you want to generate an empty repository class [no]? yes


  Summary before generation


You are going to generate a "BloggerBlogBundle:Wordpress" Doctrine2 entity
using the "annotation" format.

Do you confirm generation [yes]? yes


  Entity generation

Blogbook : PHP | Javascript | Laravel | VueJs | Python | TensorFlow