public static function searchAll() { $query = "select * from OwnerCodes"; return OwnerCode::query($query)->fetchAll(PDO::FETCH_CLASS, 'OwnerCode'); }