src/Table.php
public function selectById($id, Query $query = null, $join = 'all')
        {
            if (!$this->hasCachedB2DBObject($id)) {
                $row = $this->rawSelectById($id, $query, $join);
                $object = $this->populateFromRow($row);
            } else {
                $object = $this->getB2DBCachedObject($id);
            }
            return $object;
        }
public function selectById($id, Query $query = null, $join = 'all')
        {
            if (!$this->hasCachedB2DBObject($id)) {
                $row = $this->rawSelectById($id, $query, $join);
                $object = $this->populateFromRow($row);
            } else {
                $object = $this->getB2DBCachedObject($id);
            }
            return $object;
        }
public function selectById ( $ id , Query $ query = null , $ join = 'all' ) { if ( ! $ this -> hasCachedB2DBObject ( $ id ) ) { $ row = $ this -> rawSelectById ( $ id , $ query , $ join ) ; $ object = $ this -> populateFromRow ( $ row ) ; } else { $ object = $ this -> getB2DBCachedObject ( $ id ) ; } return $ object ; }
Select an object by its unique id

@param integer $id
@param Query $query (optional) Criteria with filters
@param mixed $join

@return Saveable
@throws Exception
Select an object by its unique id