Model/ResourceModel/Pdfgenerator.php
public function lookupStoreIds($templateId)
    {
        $adapter = $this->getConnection();
        $select = $adapter->select()->from(
            $this->getTable('eadesign_pdf_store'),
            'store_id'
        )->where(
            'template_id = ?',
            (int)$templateId
        );

        return $adapter->fetchCol($select);
    }
public function lookupStoreIds($templateId)
    {
        $adapter = $this->getConnection();
        $select = $adapter->select()->from(
            $this->getTable('eadesign_pdf_store'),
            'store_id'
        )->where(
            'template_id = ?',
            (int)$templateId
        );

        return $adapter->fetchCol($select);
    }
public function lookupStoreIds ( $ templateId ) { $ adapter = $ this -> getConnection ( ) ; $ select = $ adapter -> select ( ) -> from ( $ this -> getTable ( 'eadesign_pdf_store' ) , 'store_id' ) -> where ( 'template_id = ?' , ( int ) $ templateId ) ; return $ adapter -> fetchCol ( $ select ) ; }
Get store ids to which specified item is assigned

@param int $templateId
@return array
Get store ids to which specified item is assigned