Skip to content

Add hasOne relation type to lb4 relation #2980

@dhmlau

Description

@dhmlau

Description / Steps to reproduce / Feature proposal

Trying out the lb4 relation command from the master branch and realized that there are only 2 model relation types available for selection: belongsTo and hasMany.

We should add the hasOne relation type as one of the options as well.

Acceptance Criteria

  • when running lb4 relation command, there should be 3 options for relation types: belongsTo, hasMany and hasOne (should be added in this work item) ( should implement the "inclusion resolver" prompt too)
  • add related cli tests

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions