Guest User

Untitled

a guest
Jul 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Symfony 1.4
  2. PHP 5.2.9
  3. MySQL 5.0.81
  4.  
  5. I'm having exactly the same issue but the posted solution isn't working for me.
  6.  
  7. schema.yml:
  8.  
  9. Schedule:
  10. columns:
  11. kickoff:
  12. type: timestamp
  13. notnull: true
  14. venue_id:
  15. type: integer(4)
  16. home_id:
  17. type: integer(4)
  18. away_id:
  19. type: integer(4)
  20. relations:
  21. venue:
  22. class: venue
  23. local: venue_id
  24. foreign: id
  25. foreignAlias: schedules
  26. home:
  27. class: team
  28. local: home_id
  29. foreign: id
  30. foreignAlias: schedules
  31. away:
  32. class: team
  33. local: away_id
  34. foreign: id
  35. foreignAlias: schedules
  36.  
  37. fixtures.yml:
  38.  
  39. Schedule:
  40. Match_1:
  41. kickoff: '2010-06-11 16:00:00'
  42. Venue: Venue_2
  43. Home: Team_1
  44. Away: Team_2
  45.  
  46. symfony doctrine:build --all --and-load Error message:
  47.  
  48. Unknown record property / related component "home" on "Schedule"
  49.  
  50. Does anyone know where I'm going wrong?
Add Comment
Please, Sign In to add comment