Is there a method I can call to obtain the name of all the mapped subclasses of an entity?
Asked
Active
Viewed 235 times
2
-
Not in a straightforward way. Can you give some info on the underlying problem that needs solving? – Gerry Nov 08 '11 at 09:38
2 Answers
0
Is this what you want:
$relations = Doctrine_Core::getTable('<CLASS_NAME>')->getRelations();
foreach($relations as $relation)
echo $relation->getClass();

samura
- 4,375
- 1
- 19
- 26
0
Do $tableClass->getOption("subclasses")
Although this will only work for types of inheritance where there is a discriminator map. Most notably, you won't get it with concrete table inheritance.

Alexander Trauzzi
- 7,277
- 13
- 68
- 112