# |
Aug 8th 2008, 11:22 |
asciimo |
the db has, e.g. music table, listeners table, music_listeners |
# |
Aug 8th 2008, 11:22 |
asciimo |
good question. I'm setting up some shell classes for models, and I want to make cake aware of entity relationships |
# |
Aug 8th 2008, 11:20 |
AD7six |
at what 'level' is your question - how to achive that, how to count each how to edit, how to define? |
# |
Aug 8th 2008, 11:19 |
asciimo |
So I've got a hasAndBelongsToMany relationship between music and listeners, but I want specify the types of relationship to each. "hate" or "love" |
# |
Aug 8th 2008, 11:19 |
asciimo |
and, of course, there are many different types of music that they all listen to. |
# |
Aug 8th 2008, 11:19 |
asciimo |
ok. My music is exposed to many listeners. Some listeners love my music. Some hate my music. |
# |
Aug 8th 2008, 11:18 |
asciimo |
good analogies. |
# |
Aug 8th 2008, 11:17 |
AD7six |
asciimo: try if my article hasMany Users, but some are author, reviewer, editor etc. use real names/examples. |
# |
Aug 8th 2008, 11:16 |
asciimo |
Thanks, AD7six. |
# |
Aug 8th 2008, 11:15 |
AD7six |
because otherwise I don't foo the moo what you're baring about |
# |
Aug 8th 2008, 11:15 |
AD7six |
asciimo: it would be foo if you didn't talk in bars |
# |
Aug 8th 2008, 11:14 |
asciimo |
In other words, my_obj has 5 relationships to many your_obj of the "foo" kind, and 5 relationships to many your_obj of the "bar" kind |
# |
Aug 8th 2008, 11:13 |
asciimo |
Hi, folks. I'm a cake newbie. Does cake give an easy way of expressing qualities to relationships? For example, if my my_obj has many your_obj, but some of those relationships are "foo" and some are "bar"... |
# |
Aug 8th 2008, 11:12 |
teknoid |
np |
# |
Aug 8th 2008, 11:11 |
troutoil |
teknoid: gotcha, well, thanks for the help! |
# |
Aug 8th 2008, 11:11 |
teknoid |
troutoil: ah, it does for this case... but there is more to it then just the variable name |
# |
Aug 8th 2008, 11:09 |
troutoil |
teknoid: the above bin works automagically... and the models field type is just INT... |
# |
Aug 8th 2008, 11:09 |
troutoil |
http://bin.cakephp.org/view/711954834 |
# |
Aug 8th 2008, 11:08 |
tbranyen |
Once we get the go-ahead |
# |
Aug 8th 2008, 11:07 |
tbranyen |
Yeah its myself and another php developer, we have a two week timeframe. |
# |
Aug 8th 2008, 11:07 |
teknoid |
tbranyen: and that's a good choice :) |
# |
Aug 8th 2008, 11:07 |
tbranyen |
teknoid: Regardless of what my intentions are to make a reusable cms, i'm definitely using cake on this custom project. |
# |
Aug 8th 2008, 11:06 |
FunkyWeasel |
"Migrate from 1.1 to 1.2" the manager says. "What could go wrong" he says :P |
# |
Aug 8th 2008, 11:06 |
tbranyen |
That was rhetorical :-p |
# |
Aug 8th 2008, 11:06 |
teknoid |
tbranyen: you should know it better, since you are closer to the project... |
# |
Aug 8th 2008, 11:06 |
tbranyen |
Probably because our team leader told them it was better to have a custom made one. |
# |
Aug 8th 2008, 11:06 |
FunkyWeasel |
Ahah, found out what's throwing the oh so useful "Error: Database table cake_app_models for model AppModel was not found" message - one of the 'uses' vars in a model is including models that 1.2 doesn't like the look of, so at least I know where to look now. Cheers for all the help folks, have an excellent weekend :) |
# |
Aug 8th 2008, 11:05 |
tbranyen |
I'm currently employed in a $50k project that requires us to write a custom cms... why isn't that company just using one out there? |
# |
Aug 8th 2008, 11:05 |
tbranyen |
If thats the case, why isn't everyone using one of them? |
# |
Aug 8th 2008, 11:05 |
teknoid |
tbranyen: considering the number of available, mature cms products out there, i'd say you are in for a long haul :) |
# |
Aug 8th 2008, 11:03 |
tbranyen |
even if the client has no idea what that means |
# |
Aug 8th 2008, 11:03 |
teknoid |
troutoil: there's gotta be something else going, $form->input() is not going to match some set variable to build a select list... it's likely looking at the model's field type |
# |
Aug 8th 2008, 11:03 |
tbranyen |
its a name to associate with |
# |
Aug 8th 2008, 11:03 |
tbranyen |
That looks a lot better than simply saying custom .net CMS |
# |
Aug 8th 2008, 11:03 |
tbranyen |
I used to work with a firm that had a custom .net CMS built on netTiers |
# |
Aug 8th 2008, 11:02 |
tbranyen |
chrisa: You'd be suprised. |
# |
Aug 8th 2008, 11:01 |
chrisa |
So long as it suits their needs |
# |
Aug 8th 2008, 11:01 |
chrisa |
Do people really care what framework their commercial software uses? |
# |
Aug 8th 2008, 11:00 |
tbranyen |
Especially if I advertise it as being built on cakePHP. It would be nice to boast a claim of being the first commercial cakePHP CMS. |
# |
Aug 8th 2008, 11:00 |
troutoil |
teknoid: it's certainly not a big deal to add the options, but I figured since the form helper is looking for an existing variable, it'd be a little more elegant... |
# |
Aug 8th 2008, 11:00 |
teknoid |
chrisa: mit |