/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function get($blocker, $blocked) {
+ return Memcached_DataObject::pkeyGet('Profile_block',
+ array('blocker' => $blocker,
+ 'blocked' => $blocked));
+ }
}
function hasBlocked($other) {
- $block = Profile_block::pkeyGet(array('blocker' => $this->id,
- 'blocked' => $other->id));
+ $block = Profile_block::get($this->id, $other->id);
if (is_null($block)) {
$result = false;
# Get the block record
- $block = Profile_block::pkeyGet(array('blocker' => $this->id,
- 'blocked' => $other->id));
+ $block = Profile_block::get($this->id, $other->id);
if (!$block) {
return false;