On Sat, Jun 16, 2012 at 12:43 PM, JonStark <[email protected]> wrote:
>
> Only need to code the "unfollow" form now I guess, wich lead me to my
> initial question I guess, how can I locate and delate the database entry ?
>
> Should look like this for example:
>
> id follower_id following_id
> X     1                 3

The simplest way would be to store both the id and follow[er|ing]_id.
Then have your "unfollow" button pass the id to delete().

And you'd need to do in_array(array_values(...)) as well.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to