public $blocked; // int(4) primary_key not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
- /* Static get */
- function staticGet($k,$v=null)
- { return Memcached_DataObject::staticGet('Profile_block',$k,$v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
);
}
- function get($blocker, $blocked)
+ static function exists(Profile $blocker, Profile $blocked)
{
- return Memcached_DataObject::pkeyGet('Profile_block',
- array('blocker' => $blocker,
- 'blocked' => $blocked));
- }
+ return Profile_block::pkeyGet(array('blocker' => $blocker->id,
+ 'blocked' => $blocked->id));
+ }
}