Changed inhieratance type to joined

This commit is contained in:
Kevin Frantz 2018-11-20 22:55:20 +01:00
parent 7ca10cf154
commit aab188688c
2 changed files with 38 additions and 35 deletions

View File

@ -218,16 +218,16 @@
}, },
{ {
"name": "doctrine/common", "name": "doctrine/common",
"version": "v2.9.0", "version": "v2.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/common.git", "url": "https://github.com/doctrine/common.git",
"reference": "a210246d286c77d2b89040f8691ba7b3a713d2c1" "reference": "30e33f60f64deec87df728c02b107f82cdafad9d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/common/zipball/a210246d286c77d2b89040f8691ba7b3a713d2c1", "url": "https://api.github.com/repos/doctrine/common/zipball/30e33f60f64deec87df728c02b107f82cdafad9d",
"reference": "a210246d286c77d2b89040f8691ba7b3a713d2c1", "reference": "30e33f60f64deec87df728c02b107f82cdafad9d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -237,7 +237,7 @@
"doctrine/event-manager": "^1.0", "doctrine/event-manager": "^1.0",
"doctrine/inflector": "^1.0", "doctrine/inflector": "^1.0",
"doctrine/lexer": "^1.0", "doctrine/lexer": "^1.0",
"doctrine/persistence": "^1.0", "doctrine/persistence": "^1.1",
"doctrine/reflection": "^1.0", "doctrine/reflection": "^1.0",
"php": "^7.1" "php": "^7.1"
}, },
@ -250,7 +250,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.9.x-dev" "dev-master": "2.10.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -288,16 +288,14 @@
"email": "ocramius@gmail.com" "email": "ocramius@gmail.com"
} }
], ],
"description": "Common Library for Doctrine projects", "description": "PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.",
"homepage": "https://www.doctrine-project.org", "homepage": "https://www.doctrine-project.org/projects/common.html",
"keywords": [ "keywords": [
"annotations", "common",
"collections", "doctrine",
"eventmanager", "php"
"persistence",
"spl"
], ],
"time": "2018-07-12T21:16:12+00:00" "time": "2018-11-21T01:24:55+00:00"
}, },
{ {
"name": "doctrine/dbal", "name": "doctrine/dbal",
@ -940,16 +938,16 @@
}, },
{ {
"name": "doctrine/orm", "name": "doctrine/orm",
"version": "v2.6.2", "version": "v2.6.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/doctrine2.git", "url": "https://github.com/doctrine/doctrine2.git",
"reference": "d2b4dd71d2a276edd65d0c170375b445f8a4a4a8" "reference": "434820973cadf2da2d66e7184be370084cc32ca8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/doctrine2/zipball/d2b4dd71d2a276edd65d0c170375b445f8a4a4a8", "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/434820973cadf2da2d66e7184be370084cc32ca8",
"reference": "d2b4dd71d2a276edd65d0c170375b445f8a4a4a8", "reference": "434820973cadf2da2d66e7184be370084cc32ca8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1018,20 +1016,20 @@
"database", "database",
"orm" "orm"
], ],
"time": "2018-07-12T20:47:13+00:00" "time": "2018-11-20T23:46:46+00:00"
}, },
{ {
"name": "doctrine/persistence", "name": "doctrine/persistence",
"version": "v1.0.1", "version": "v1.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/persistence.git", "url": "https://github.com/doctrine/persistence.git",
"reference": "af1ec238659a83e320f03e0e454e200f689b4b97" "reference": "c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/persistence/zipball/af1ec238659a83e320f03e0e454e200f689b4b97", "url": "https://api.github.com/repos/doctrine/persistence/zipball/c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38",
"reference": "af1ec238659a83e320f03e0e454e200f689b4b97", "reference": "c0f1c17602afc18b4cbd8e1c8125f264c9cf7d38",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1043,17 +1041,17 @@
"php": "^7.1" "php": "^7.1"
}, },
"conflict": { "conflict": {
"doctrine/common": "<2.9@dev" "doctrine/common": "<2.10@dev"
}, },
"require-dev": { "require-dev": {
"doctrine/coding-standard": "^4.0", "doctrine/coding-standard": "^5.0",
"phpstan/phpstan": "^0.8", "phpstan/phpstan": "^0.8",
"phpunit/phpunit": "^7.0" "phpunit/phpunit": "^7.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.0.x-dev" "dev-master": "1.1.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -1091,12 +1089,16 @@
"email": "ocramius@gmail.com" "email": "ocramius@gmail.com"
} }
], ],
"description": "Doctrine Persistence abstractions.", "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.",
"homepage": "https://doctrine-project.org/projects/persistence.html", "homepage": "https://doctrine-project.org/projects/persistence.html",
"keywords": [ "keywords": [
"mapper",
"object",
"odm",
"orm",
"persistence" "persistence"
], ],
"time": "2018-07-12T12:37:50+00:00" "time": "2018-11-21T00:33:13+00:00"
}, },
{ {
"name": "doctrine/reflection", "name": "doctrine/reflection",
@ -2556,16 +2558,16 @@
}, },
{ {
"name": "psr/log", "name": "psr/log",
"version": "1.0.2", "version": "1.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/log.git", "url": "https://github.com/php-fig/log.git",
"reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
"reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2599,7 +2601,7 @@
"psr", "psr",
"psr-3" "psr-3"
], ],
"time": "2016-10-10T12:19:37+00:00" "time": "2018-11-20T15:27:04+00:00"
}, },
{ {
"name": "psr/simple-cache", "name": "psr/simple-cache",

View File

@ -9,10 +9,11 @@ use Symfony\Component\Validator\Constraints as Assert;
/** /**
* @author kevinfrantz * @author kevinfrantz
* * @todo Change to SINGLE_TABLE. JOINED was necessary because SINGLE_TABLE leaded to:
* @see << SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DEV_DATABASE.source_data_name' doesn't exist >>
* @ORM\Entity * @ORM\Entity
* @ORM\Table(name="source_data_name") * @ORM\Table(name="source_data_name")
* @ORM\InheritanceType("SINGLE_TABLE") * @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="discr", type="string") * @ORM\DiscriminatorColumn(name="discr", type="string")
* @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"}) * @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
*/ */