[scu-smp] r274 committed - Complete - issue 43: Expire Mentee\Mentor and their connection ...

0 views
Skip to first unread message

scu...@googlecode.com

unread,
Oct 2, 2010, 2:45:16 AM10/2/10
to scu...@googlegroups.com
Revision: 274
Author: sid.moradi
Date: Fri Oct 1 23:42:48 2010
Log: Complete - issue 43: Expire Mentee\Mentor and their connection
http://code.google.com/p/scu-smp/issues/detail?id=43

* When mark Mentee as not expired , then set as not Matched too.
http://code.google.com/p/scu-smp/source/detail?r=274

Modified:
/trunk/smp-php/smp/mapper/MenteeMapper.php

=======================================
--- /trunk/smp-php/smp/mapper/MenteeMapper.php Fri Oct 1 23:34:50 2010
+++ /trunk/smp-php/smp/mapper/MenteeMapper.php Fri Oct 1 23:42:48 2010
@@ -35,8 +35,8 @@
}

function markMenteeAsNotExpired($id) {
- $updateStmt = self::$ADODB->Prepare("UPDATE smp_mentee SET expired=?
WHERE id=?");
- return self::$ADODB->Execute($updateStmt, array(false, $id));
+ $updateStmt = self::$ADODB->Prepare("UPDATE smp_mentee SET expired=?,
matched=? WHERE id=?");
+ return self::$ADODB->Execute($updateStmt, array(false, false, $id));
}

function save(smp_domain_Mentee $mentee) {

Reply all
Reply to author
Forward
0 new messages