Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @Entity
- * @Table(name="actions")
- * @InheritanceType("JOINED")
- * @DiscriminatorColumn(name="type", type="string")
- * @DiscriminatorMap({"FOO" = "FooAction", "BAR" = "BarAction", ...})
- */
- abstract class AbstractAction
- {
- ...
- }
- /**
- * @Entity
- * @Table(name="actions_foo")
- */
- class FooAction extends AbstractAction
- {
- ...
- }
- /**
- * @Entity
- * @Table(name="actions")
- */
- class BarAction extends AbstractAction
- {
- ...
- }
- PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
- DoctrineORMMappingMappingException: Class BarAction is not a valid entity or mapped super class.
Add Comment
Please, Sign In to add comment