function isEntityAssign()
{
// Case of Duplicate Entity info to child
if (parent::isEntityAssign()) {
return true;
}
if (preg_match('/^itemtype/', $this->itemtype)) {
$type = $this->fields[$this->itemtype];
} else {
$type = $this->itemtype;
}
if (class_exists($type)) {
$item = new $type();
return $item->isEntityAssign();
}
return -1;
}