From 79ab1b02465610f23221ef9f0139463f1129727a Mon Sep 17 00:00:00 2001 From: Ty Kayn Date: Thu, 15 Mar 2018 16:04:00 +0100 Subject: [PATCH] entities relations --- .idea/composerJson.xml | 10 + .../inspectionProfiles/profiles_settings.xml | 5 - .idea/php.xml | 97 + .idea/sf4-test.iml | 94 +- .idea/symfony2.xml | 7 + .idea/workspace.xml | 656 +- composer.json | 6 +- composer.lock | 2 +- package-lock.json | 8843 +++++++++++++++++ src/Controller/ProductController.php | 40 + src/Entity/Product.php | 89 + src/Entity/ProductCategory.php | 56 + src/Entity/SellRecord.php | 73 + src/Repository/ProductCategoryRepository.php | 34 + src/Repository/ProductRepository.php | 34 + src/Repository/SellRecordRepository.php | 34 + templates/base.html.twig | 22 +- templates/product/index.html.twig | 20 + 18 files changed, 10082 insertions(+), 40 deletions(-) create mode 100644 .idea/composerJson.xml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/php.xml create mode 100644 .idea/symfony2.xml create mode 100644 package-lock.json create mode 100644 src/Controller/ProductController.php create mode 100644 src/Entity/Product.php create mode 100644 src/Entity/ProductCategory.php create mode 100644 src/Entity/SellRecord.php create mode 100644 src/Repository/ProductCategoryRepository.php create mode 100644 src/Repository/ProductRepository.php create mode 100644 src/Repository/SellRecordRepository.php create mode 100644 templates/product/index.html.twig diff --git a/.idea/composerJson.xml b/.idea/composerJson.xml new file mode 100644 index 00000000..1b074300 --- /dev/null +++ b/.idea/composerJson.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 0eefe328..00000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 00000000..5daafc8e --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/sf4-test.iml b/.idea/sf4-test.iml index c956989b..251d1c96 100644 --- a/.idea/sf4-test.iml +++ b/.idea/sf4-test.iml @@ -1,7 +1,99 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml new file mode 100644 index 00000000..ba828bce --- /dev/null +++ b/.idea/symfony2.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a2592eed..162fd7a9 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,14 @@ - + + + + + + + + + + $PROJECT_DIR$/composer.json + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + db_user + + + + + + + - + + + true DEFINITION_ORDER - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -31,17 +268,101 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +