/**
  * Creates a new relation find query.
  *
  * Creates a new relation find query from the query object $q and the
  * given $className. Optionally, a $relationSetName and the $relationSource
  * object can be given. Providing these results in the creation of a named
  * related object set when objects are found using {@link
  * ezcPersistentSessionIdentityDecorator::find()}.
  * 
  * @param ezcQuerySelect $query
  * @param string $className
  * @param string $relationSetName
  * @param ezcPersistentObject $relationSource
  */
 public function __construct(ezcQuerySelect $query, $className, $relationSetName = null, $relationSource = null)
 {
     parent::__construct($query, $className);
     $this->__set('relationSetName', $relationSetName);
     $this->__set('relationSource', $relationSource);
 }
 /**
  * Creates a new persistent find query.
  *
  * Creates a new persistent find query from the query object $q and the
  * given $className. $relations defines, which related objects should be
  * fetched by this query.
  *
  * @see ezcPerisistentSessionIdenityDecorator::createFindWithRelationsQuery()
  * 
  * @param ezcQuerySelect $query
  * @param string $className
  * @param array(string=>ezcPersistentRelationFindDefinition) $relations
  */
 public function __construct(ezcQuerySelect $query, $className, array $relations)
 {
     parent::__construct($query, $className);
     $this->properties['isRestricted'] = false;
     $this->properties['relations'] = $relations;
 }