public static function find($id)
    {
        self::init();
        $query = 'SELECT * FROM ' . self::$modelTable . ' WHERE id = '.$id;
        $qb = new QueryBuilder(self::$connect, $query);
        $rows = $qb->get();
        $collection = self::makeCollection($rows);
        return !empty($collection) ? array_shift($collection) : null;
    }
public static function find($id)
    {
        self::init();
        $query = 'SELECT * FROM ' . self::$modelTable . ' WHERE id = '.$id;
        $qb = new QueryBuilder(self::$connect, $query);
        $rows = $qb->get();
        $collection = self::makeCollection($rows);
        return !empty($collection) ? array_shift($collection) : null;
    }
public static function find ( $ id ) { self :: init ( ) ; $ query = 'SELECT * FROM ' . self :: $ modelTable . ' WHERE id = ' . $ id ; $ qb = new QueryBuilder ( self :: $ connect , $ query ) ; $ rows = $ qb -> get ( ) ; $ collection = self :: makeCollection ( $ rows ) ; return ! empty ( $ collection ) ? array_shift ( $ collection ) : null ; }
Get object of record
Get object of record