public static function getByID($id)
    {
        $record = static::getRecordByField(static::$primaryKey ? static::$primaryKey : 'ID', $id, true);

        return static::instantiateRecord($record);
    }
public static function getByID($id)
    {
        $record = static::getRecordByField(static::$primaryKey ? static::$primaryKey : 'ID', $id, true);

        return static::instantiateRecord($record);
    }
public static function getByID ( $ id ) { $ record = static :: getRecordByField ( static :: $ primaryKey ? static :: $ primaryKey : 'ID' , $ id , true ) ; return static :: instantiateRecord ( $ record ) ; }
Get model object by primary key.

@param int $id
@return static|null
Get model object by primary key .