public function setOwnerId($uid) { $key = $this->getEntityType() ->getKey('owner'); $this->set($key, $uid); return $this; }