Skip to content

[make:entity] helper message with two classes having the same name under different namespaces #1292

Closed
@jeromegxj

Description

@jeromegxj

When working with similar class names under two different namespaces, the helper message in relation lost its interest.

A console log is worth a thousand words:

$ bin/console make:entity

 Class name of the entity to create or update (e.g. DeliciousPizza):
 > Order

 Your entity already exists! So let's add some new fields!

 New property name (press <return> to stop adding fields):
 > logisticOrders

 Field type (enter ? to see all types) [string]:
 > relation

 What class should this entity be related to?:
 > Logistic\Order

What type of relationship is this?
 ------------ ------------------------------------------------------------------- 
  Type         Description                                                        
 ------------ ------------------------------------------------------------------- 
  ManyToOne    Each Order relates to (has) one Order.                             
               Each Order can relate to (can have) many Order objects.            
                                                                                  
  OneToMany    Each Order can relate to (can have) many Order objects.            
               Each Order relates to (has) one Order.                             
                                                                                  
  ManyToMany   Each Order can relate to (can have) many Order objects.            
               Each Order can also relate to (can also have) many Order objects.  
                                                                                  
  OneToOne     Each Order relates to (has) exactly one Order.                     
               Each Order also relates to (has) exactly one Order.                
 ------------ ------------------------------------------------------------------- 

 Relation type? [ManyToOne, OneToMany, ManyToMany, OneToOne]:
 > ???

The message should come with the fully qualified class name.
I'm willing to work on this one if you think it's worth it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions