public function delete() { EnvironmentCloudCredentials::deleteByCloudCredentialsId($this->id); parent::delete(); }