Guest User

Untitled

a guest
Jul 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. /**
  2. * @Entity
  3. * @Table(name="actions")
  4. * @InheritanceType("JOINED")
  5. * @DiscriminatorColumn(name="type", type="string")
  6. * @DiscriminatorMap({"FOO" = "FooAction", "BAR" = "BarAction", ...})
  7. */
  8. abstract class AbstractAction
  9. {
  10. ...
  11. }
  12.  
  13. /**
  14. * @Entity
  15. * @Table(name="actions_foo")
  16. */
  17. class FooAction extends AbstractAction
  18. {
  19. ...
  20. }
  21.  
  22. /**
  23. * @Entity
  24. * @Table(name="actions")
  25. */
  26. class BarAction extends AbstractAction
  27. {
  28. ...
  29. }
  30.  
  31. PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
  32.  
  33. DoctrineORMMappingMappingException: Class BarAction is not a valid entity or mapped super class.
Add Comment
Please, Sign In to add comment