Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Added required attributes validation
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrogehlen committed Aug 2, 2015
1 parent 57a815d commit 4e180de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TreeGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ public function init()
throw new InvalidConfigException('The "formatter" property must be either a Format object or a configuration array.');
}

if (!$this->keyColumnName) {
throw new InvalidConfigException('The keyColumnName must be specified"');
}
if (!$this->parentColumnName) {
throw new InvalidConfigException('The parentColumnName must be specified"');
}

$this->initColumns();
}

Expand Down

0 comments on commit 4e180de

Please sign in to comment.