Project

General

Profile

Actions

Feature #24039

closed

The TYPO3 DB API can support mysql_fetch_object to retreive a record as a model object

Added by Lieuwe Hummel about 14 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2010-11-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.5
Tags:
Complexity:
Sprint Focus:

Description

The current database API does not utilize the PHP function to retreive a record as a model object. The attached patch implements a t3lib_db->sql_fetch_object() method, which will allow for this functionallity

the mysql_fetch_object() function has similar functions for at least mssql and oracle as well as pdo.
(issue imported from #M16371)


Files

t3lib_db-sql_fetch_object.diff (1.38 KB) t3lib_db-sql_fetch_object.diff Administrator Admin, 2010-11-12 22:38
Actions #1

Updated by Mathias Schreiber almost 10 years ago

  • Description updated (diff)
  • Status changed from New to Accepted
  • Target version changed from 0 to 7.0
  • PHP Version changed from 5.2 to 5.5
Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 7.0 to 7.1 (Cleanup)
Actions #3

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Actions #4

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #5

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #6

Updated by Morton Jonuschat about 8 years ago

  • Status changed from Accepted to Closed
  • Target version set to 8.4

This has been solved in current TYPO3 8.3+ by using Doctrine, you can supply the constant PDO::FETCH_OBJ as mode to the `->fetch()` method and will get objects in return.

Actions

Also available in: Atom PDF