Skip to content

Commit

Permalink
Bugfix. Check for concept match on interface entry must use specializ…
Browse files Browse the repository at this point in the history
…ations instead of generalizations
  • Loading branch information
Michiel-s authored and hanjoosten committed Mar 18, 2017
1 parent 146fa5f commit 1ec655d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function isPublic(){
*/
public function setSrcAtom($atom){
// Check if atom can be used as source for this interface
if(!in_array($atom->concept, $this->srcConcept->getGeneralizationsIncl())) throw new Exception ("Atom '{$atom->__toString()}' does not match source concept '{$this->srcConcept}' or any of its generalizations. Interface path: '{$this->path}'", 500);
if(!in_array($atom->concept, $this->srcConcept->getSpecializationsIncl())) throw new Exception ("Atom '{$atom}' does not match source concept '{$this->srcConcept}' or any of its specializations. Interface path: '{$this->path}'", 500);

$this->srcAtom = $atom;
$this->path = $this->srcAtom->path . '/' . $this->id;
Expand Down

0 comments on commit 1ec655d

Please sign in to comment.