src/behaviors/HasProperties.php
public function hasPropertyKey($key)
    {
        /** @var \yii\db\ActiveRecord|\DevGroup\DataStructure\traits\PropertiesTrait $owner */
        $owner = $this->owner;
        $owner->ensurePropertiesAttributes();
        return in_array($key, $owner->propertiesAttributes);
    }
public function hasPropertyKey($key)
    {
        /** @var \yii\db\ActiveRecord|\DevGroup\DataStructure\traits\PropertiesTrait $owner */
        $owner = $this->owner;
        $owner->ensurePropertiesAttributes();
        return in_array($key, $owner->propertiesAttributes);
    }
public function hasPropertyKey ( $ key ) { /** @var \yii\db\ActiveRecord|\DevGroup\DataStructure\traits\PropertiesTrait $owner */ $ owner = $ this -> owner ; $ owner -> ensurePropertiesAttributes ( ) ; return in_array ( $ key , $ owner -> propertiesAttributes ) ; }
Returns if property is binded to model
@param string $key
@return bool
Returns if property is binded to model