php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57363 Relational DAS, allow more than one top level SDO
Submitted: 2006-11-09 08:36 UTC Modified: 2006-12-07 10:39 UTC
From: simonslaws at googlemail dot com Assigned: SLAWS (profile)
Status: No Feedback Package: SCA_SDO (PECL)
PHP Version: 5.2.0 RC4 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: simonslaws at googlemail dot com
New email:
PHP Version: OS:

 

 [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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-09 08:39 UTC] simonslaws at googlemail dot com
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
 [2006-11-27 06:07 UTC] cem@php.net
This update is in the 1.1.0 release. Can we close this now?
 [2006-12-07 10:39 UTC] cem@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 22:01:26 2019 UTC