Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-ALPHA2
-
Component/s: Tools
-
Security Level: All
-
Labels:None
Description
Using the schema-tool to create the database creates a table for a mapped superclass. I think this behaviour is not desired, since the fields of the superclass also exist in the subclass tables. Running php doctrine schema-tool --create --dump-sql --classdir="<...>" generates the following output (MySql):
CREATE TABLE Blameable (date_created DATETIME NOT NULL, date_updated DATETIME DEFAULT NULL,
date_deleted DATETIME DEFAULT NULL, creator_id INT DEFAULT NULL, updater_id INT DEFAULT NULL,
deleter_id INT DEFAULT NULL) ENGINE = InnoDB
ALTER TABLE Blameable ADD FOREIGN KEY (creator_id) REFERENCES user_users(id)
ALTER TABLE Blameable ADD FOREIGN KEY (updater_id) REFERENCES user_users(id)
ALTER TABLE Blameable ADD FOREIGN KEY (deleter_id) REFERENCES user_users(id)
Only the mapped superclass exists in the classdir. I think it should not create any tables.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | Example.php [ 10052 ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 2.0-ALPHA2 [ 10028 ] | |
| Resolution | Fixed [ 1 ] |
| Workflow | jira [ 10131 ] | jira-feedback [ 15421 ] |
| Workflow | jira-feedback [ 15421 ] | jira-feedback2 [ 17285 ] |
| Workflow | jira-feedback2 [ 17285 ] | jira-feedback3 [ 19542 ] |
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-27, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Example class, used to generate output.