protected function getUserId() { if ($this->intUserId !== null) { return $this->intUserId; } $this->import('BackendUser', 'User'); return $this->User->id; }