common/models/resources/ModelMeta.php
public function belongsTo( $parent, $parentType ) {

		return $this->parentId == $parent->id && $this->parentType == $parentType;
	}
public function belongsTo( $parent, $parentType ) {

		return $this->parentId == $parent->id && $this->parentType == $parentType;
	}
public function belongsTo ( $ parent , $ parentType ) { return $ this -> parentId == $ parent -> id && $ this -> parentType == $ parentType ; }
Check whether the meta belongs to given parent model.

@param \cmsgears\core\common\models\base\ActiveRecord $parent
@param string $parentType
@return boolean
Check whether the meta belongs to given parent model .