mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2119: Problem with inheritance type: INHERITANCE_TYPE_NONE and INHERITANCE_TYPE_TABLE_PER_CLASS #2670
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 3, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user sergsw:
I tried to create inheritance entities with save policy table per class.
Simple fileds was created normally, but a field with ManyToOne type was lost.
I had found a solution.
In Doctrine\ORM\Tools\SchemaTool
...
But it was enough. In DQL query a simple query was made wrong.
I had found a solution again.
In Doctrine\ORM\Query\SqlWalker
...
This problems are topical for inheritance type: INHERITANCE_TYPE_NONE and INHERITANCE_TYPE_TABLE_PER_CLASS.
I don't know, may be my solutions are wrong. But some programmers want to correctly work with INHERITANCE_TYPE_TABLE_PER_CLASS.
Sorry for my english.
@doctrinebot commented on GitHub (Nov 5, 2012):
Comment created by @FabioBatSilva:
Hi SergSW
Could you try to write a failing test case ?
Thanks
@doctrinebot commented on GitHub (Nov 6, 2012):
Comment created by sergsw:
SSW/TestBundle with the problem
@doctrinebot commented on GitHub (Nov 7, 2012):
Comment created by sergsw:
I install the Symfony v2.0.18. and made small TestBundle.
I made schema database, by CLI "console doctrine:schema:update --force"
Result: Database schema updated successfully!
But I saw that I lost a field 'user_id' in a table 'AttachTree' (see Attach)
@doctrinebot commented on GitHub (Nov 7, 2012):
Comment created by sergsw:
MySQL dump
@doctrinebot commented on GitHub (Nov 12, 2012):
Comment created by @beberlei:
Adjusted example formatting, don't apologize for your English, thanks for the report!
@doctrinebot commented on GitHub (Dec 24, 2012):
Comment created by @beberlei:
What version of 2.1 are you using? We don't actually support 2.1 anymore. Inheritance has always worked as used in hundrets of unit-tests, this changes look quite major a bug to have been missed before. I can't really explain whats happening here.
@doctrinebot commented on GitHub (Jan 23, 2013):
Comment created by @ocramius:
[~sergsw] news?