src/Model/Tables/MelisPlatformSchemeTable.php
public function getSchemeById($id, $colorsOnly = false)
    {
        $id     = (int) $id;
        $select = $this->tableGateway->getSql()->select();

        if($colorsOnly) {
            $select->columns(array(
                'pscheme_id', 'pscheme_name', 'pscheme_colors', 'pscheme_is_active'
            ));
        }


        $select->where->equalTo('pscheme_id', $id);

        $resultSet = $this->tableGateway->selectWith($select);

        return $resultSet;
    }
public function getSchemeById($id, $colorsOnly = false)
    {
        $id     = (int) $id;
        $select = $this->tableGateway->getSql()->select();

        if($colorsOnly) {
            $select->columns(array(
                'pscheme_id', 'pscheme_name', 'pscheme_colors', 'pscheme_is_active'
            ));
        }


        $select->where->equalTo('pscheme_id', $id);

        $resultSet = $this->tableGateway->selectWith($select);

        return $resultSet;
    }
public function getSchemeById ( $ id , $ colorsOnly = false ) { $ id = ( int ) $ id ; $ select = $ this -> tableGateway -> getSql ( ) -> select ( ) ; if ( $ colorsOnly ) { $ select -> columns ( array ( 'pscheme_id' , 'pscheme_name' , 'pscheme_colors' , 'pscheme_is_active' ) ) ; } $ select -> where -> equalTo ( 'pscheme_id' , $ id ) ; $ resultSet = $ this -> tableGateway -> selectWith ( $ select ) ; return $ resultSet ; }
Query scheme table by ID
@param $id
@param bool $colorsOnly
@return null|\Zend\Db\ResultSet\ResultSetInterface
Query scheme table by ID