Hi,

I just found and install sfPropelActAsSortableBehaviorPlugin . it is
really useful to handle documents data or single layer category.

After install and implement to my apps, I have few questions...
For example:
If I have a table,abc, has 3 columns. id,rank, topic_id. and I input 5
records.
id     rank    topic_id
1      1        1
2      2        1
3      3        2
4      4        2
5      5        2

and I wanna get records of "topic_id = 2"
so, my action code:
$c = new Criteria();
$c->add(abcPeer::TOPIC_ID , '2');
$records = abcPeer::doSelectOrderByPosition(Criteria::ASC, $c );
//now, I got id 3, 4 and 5 records.
Right now, I want to do more.  I wanna id 5 move to the top of
topic_id = 2. then I try this:
$node5 = abcPeer::retrieveByPK(5);
$node5->moveToTop($records);
//hum... this is not work.

According plug-in introduction, moveToTop method has 2 parameters:
$object, $con.

I don't know what the $object is. Could anybody give me some tips?

Thanks,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to