Model relationships

  • Idea
  • Updated 5 years ago
  • Not Planned
I can only see belongsTo, hasMany, and HABTM. Would be nice if there was support for hasOne as well.

Pretty interesting concept though. I'm definitely going to play around with this some more.
Photo of aarebrotA

aarebrot

  • 8 Posts
  • 0 Likes
  • happy

Posted 5 years ago

  • 1
Photo of powtac

powtac, Official Rep

  • 30 Posts
  • 0 Likes
Official Response
Sure I understand what you need. But at the moment CakeApp offers only the ability to change the DB structure and everything else is created automatically with the build in bake and scaffold functions.

Also if you use the bake shell and use "bake all" then a DB schema which could be a hasOn or belongsTo will always be created as belongsTo.

In the moment I don't have any idea how to add this feature by changing something in the SQL editor.