Author: Tobias Schlitt
Date: 2007-05-05 21:58:05 +0200 (Sat, 05 May 2007)
New Revision: 5068
Log:
- Implemented feature #9967: PersistentObject: getRelationQuery() method. This
method is now called createRelationFindQuery() and is public now.
# Already tested by getRelatedObject/s().
Modified:
trunk/PersistentObject/ChangeLog
trunk/PersistentObject/src/persistent_session.php
Modified: trunk/PersistentObject/ChangeLog
===================================================================
--- trunk/PersistentObject/ChangeLog 2007-05-05 19:54:20 UTC (rev 5067)
+++ trunk/PersistentObject/ChangeLog 2007-05-05 19:58:05 UTC (rev 5068)
@@ -15,6 +15,8 @@
no apparant reason.
- Implemented feature #8487: An interface for Persistent Objects.
- Implemented feature #10166: Cache PO-definitions.
+- Implemented feature #9967: PersistentObject: getRelationQuery() method. This
+ method is now called createRelationFindQuery() and is public now.
1.2 - Monday 18 December 2006
Modified: trunk/PersistentObject/src/persistent_session.php
===================================================================
--- trunk/PersistentObject/src/persistent_session.php 2007-05-05 19:54:20 UTC
(rev 5067)
+++ trunk/PersistentObject/src/persistent_session.php 2007-05-05 19:58:05 UTC
(rev 5068)
@@ -486,16 +486,18 @@
/**
* Returns the base query for retrieving related objects.
- * See [EMAIL PROTECTED] getRelatedObject()} and [EMAIL PROTECTED]
getRelatedObjects()}.
+ * See [EMAIL PROTECTED] getRelatedObject()} and [EMAIL PROTECTED]
getRelatedObjects()}. Can be
+ * modified by additional where conditions and simply be used with
+ * [EMAIL PROTECTED] find()} and the related class name.
*
- * @param object $object
- * @param string $relatedClass
+ * @param object $object Object to find related objects for.
+ * @param string $relatedClass Class of the related objects to find.
* @return ezcDbSelectQuery
*
* @throws ezcPersistentRelationNotFoundException
* if the given $object does not have a relation to $relatedClass.
*/
- private function createRelationFindQuery( $object, $relatedClass )
+ public function createRelationFindQuery( $object, $relatedClass )
{
$def = $this->definitionManager->fetchDefinition( ( $class =
get_class( $object ) ) );
if ( !isset( $def->relations[$relatedClass] ) )
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components