public function getComponentByDbId($dbId, $select = array())
    {
        $components = $this->getComponentsByDbId($dbId, $select);
        $this->_checkSingleComponent($components);
        if (isset($components[0])) {
            return $components[0];
        }
        return null;
    }
public function getComponentByDbId($dbId, $select = array())
    {
        $components = $this->getComponentsByDbId($dbId, $select);
        $this->_checkSingleComponent($components);
        if (isset($components[0])) {
            return $components[0];
        }
        return null;
    }
public function getComponentByDbId ( $ dbId , $ select = array ( ) ) { $ components = $ this -> getComponentsByDbId ( $ dbId , $ select ) ; $ this -> _checkSingleComponent ( $ components ) ; if ( isset ( $ components [ 0 ] ) ) { return $ components [ 0 ] ; } return null ; }
Searches for a component data by it's dbId

As multiple can have the same dbId you will get an exception if mutiple are found.
To avoid that pass 'limit'=>1 as select

@param string
@param array|Kwf_Component_Select
@return Kwf_Component_Data
Searches for a component data by it s dbId