Skip to content

yalit/Symfony-Inheritance-Entity

Repository files navigation

Inheritance Objects

Small quick project to play with the inheritance and how to set it up in Symfony.

Act as a playground and also as a history tool

(No Migration file existing as tested only with sqlite... ;-))

Goal of the project

Setup a small entity like the following:

  • A Survey has multiple Questions
  • Questions can be of different sort
    • TextQuestion : only 1 text answer possible
    • NumberQuestion : only 1 number answer possible
    • MultipleChoiceQuestion : multiple choice to choose from
    • BooleanQuestion : only Yes or No possibility

All Questions entities inherit from Question structure

  • Answers can be of different sort
    • TextAnswer
    • NumberAnswer
    • BooleanAnswer
    • MultipleChoiceSingleValueAnswer
    • MultipleChoiceMultipleValueAnswer (To Be Added)

All Answers entities inherit from Answer Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published