Sunday, March 14, 2010

Re: Multi-criteria Rating System

Here's a bit more on this:

If you are asking why I created service_types to be a
hasandBelongstoMany connection it's because Editorial Reviews (model)
hasAndBelongsToMany Service Types.

Hope this clears it up some. I am just trying to figure out how to do
this, it seems fairly easy for Cake to handle something like this with
ease, as long as I'm keeping with the conventions. And it should be
mentioned that I am trying to handle this all thru the
EditorialReviews/add/, so I have all this data available to me from
setting recursive to 3, so it gets all the joining and whatnot, as you
can see below:

[data] => Array
(
[EditorialReview] => Array
(
[id] => 2
[name] =>
[published] => 0
[editors_id] =>
)

[Editors] => Array
(
[id] =>
)

[ServiceType] => Array
(
[0] => Array
(
[id] => 2
[name] => VPS
[published] => 1
[created] =>
[updated] =>
[Rating] => Array
(
[0] => Array
(
[id] => 1
[rating_types_id] => 1
[rating] => 2
[created] =>
[modified] =>
[RatingType] => Array
(
)

)

[1] => Array
(
[id] => 2
[rating_types_id] => 2
[rating] => 3
[created] =>
[modified] =>
[RatingType] => Array
(
[id] => 2
[name] =>
Bandwidth
[published] => 1
[created] =>
[updated] =>
)

)

[2] => Array
(
[id] => 3
[rating_types_id] => 3
[rating] => 2
[created] =>
[modified] =>
[RatingType] => Array
(
[id] => 3
[name] => Price
[published] => 1
[created] =>
[updated] =>
)

)

[3] => Array
(
[id] => 4
[rating_types_id] => 4
[rating] => 4
[created] =>
[modified] =>
[RatingType] => Array
(
[id] => 4
[name] => Tech
Support
[published] => 1
[created] =>
[updated] =>
)

)

[4] => Array
(
[id] => 5
[rating_types_id] => 5
[rating] => 3
[created] =>
[modified] =>
[RatingType] => Array
(
[id] => 5
[name] => Sales
Support
[published] => 1
[created] =>
[updated] =>
)

)

)

)

Thanks for any help / solution you can help me with. I understand
Cake fairly well, just not good with what appears to be complex db
stuff.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate