src/Table.php
public function rawSelectById($id, Query $query = null, $join = 'all')
        {
            if (!$id) {
                return null;
            }

            if (!$query instanceof Query) {
                $query = new Query($this);
            }
            $query->where($this->id_column, $id);
            $query->setLimit(1);
            return $this->rawSelectOne($query, $join);
        }
public function rawSelectById($id, Query $query = null, $join = 'all')
        {
            if (!$id) {
                return null;
            }

            if (!$query instanceof Query) {
                $query = new Query($this);
            }
            $query->where($this->id_column, $id);
            $query->setLimit(1);
            return $this->rawSelectOne($query, $join);
        }
public function rawSelectById ( $ id , Query $ query = null , $ join = 'all' ) { if ( ! $ id ) { return null ; } if ( ! $ query instanceof Query ) { $ query = new Query ( $ this ) ; } $ query -> where ( $ this -> id_column , $ id ) ; $ query -> setLimit ( 1 ) ; return $ this -> rawSelectOne ( $ query , $ join ) ; }
Returns one row from the current table based on a given id

@param integer $id
@param Query|null $query
@param mixed $join

@return \b2db\Row|null
Returns one row from the current table based on a given id