|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-11-09 08:36 UTC] simonslaws at googlemail dot com
Description: ------------ There is a thread (http://groups.google.co.uk/group/phpsoa/browse_frm/thread/440dca3847930dff?hl=en) that discusses the problems that the current relational DAS causes by only allowing for a single hierarchy of data objects to be retireved from a database. For example, you can't retrieve reference data, create new data objects that reference it through non-containment references and then update the database as there is no way to insert the new objects unless you want to introduce them into the reference object hierarchy. Reproduce code: --------------- See the post at http://groups.google.co.uk/group/phpsoa/browse_frm/thread/440dca3847930dff?hl=en Expected result: ---------------- See the post at http://groups.google.co.uk/group/phpsoa/browse_frm/thread/440dca3847930dff?hl=en Actual result: -------------- See the post at http://groups.google.co.uk/group/phpsoa/browse_frm/thread/440dca3847930dff?hl=en PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
A fix has been applied to the BRANCH_1_0_5 branch to allow more than one data object to exist at the top level. Changes ======= ObjectModel.php defineToSDO() addAllTypesToSDO() - added this method addTopLevelContainmentPropertiesToSDO() - added this method ContainmentReferencesModel.php __construct() Added data_model as a constructure param If not app_root_type is specified consider all non contained types as reachable getAllNonContainedTypes Relational.php __construct() allow $application_root_type to be null in all situations normaliseResultSet allow $application_root_type to be null