Help with collections and relational database
Unfortunately I've scoured for hours but the lack of documentation has lead me here - it has more to do with my lack of understanding of the general setup of CoughPHP I'm sure, though I figured I'd ask and other people can benefit from this.
Now the biggest issue I'm having is having is with any sort of relations in the database. It _appears_ that I have to write my own collections in the skeleton classes that the cough generation script creates, though I'm not positive. The documentation implies that there was methods already available for relational purposes:
--
<?php
// Get's all of the authors aliases accordingly (from the handbook)
$aliases = $author-
.. truncated
--
Unfortunately I can't find any good documentation or examples on what this is actually doing / how much of it I should write myself.
I suppose I have two questions, the scope of the latter is a bit large / newbie so feel free to point me in the right direction rather than fully holding my hand:
1) Are the Table_Collections classes supposed to be auto generated with some methods in them? Or are collections meant solely for me to create / use with relational databases. Is there any way to utilize many-to-one / many-to-many (I saw the milestone just throwing it in for the sake of it) out-of-box?
2) If no to the first question, is there any projects and or examples of how to properly (I'm OCD) handle relations (both one-to-one and many-to-many)?
Any sort of direction would be appreciated, I'm really falling in love with both of your projects (LightVC / CoughPHP) though unfortunately my lack of understanding is making it difficult to use it.
Thanks for reading!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- CoughPHP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Cody for more information if necessary.