Class: Doctrine_Relation_Association

Source Location: /Doctrine/Relation/Association.php

Class Doctrine_Relation_Association

Class Overview

Doctrine_Relation_Association this class takes care of association mapping (= many-to-many relationships, where the relationship is handled with an additional relational table which holds 2 foreign keys)

Located in /Doctrine/Relation/Association.php [line 36]

Doctrine_Relation
   |
   --Doctrine_Relation_Association
Author(s): Information Tags:
Version:  $Revision: 2212 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Methods

[ Top ]
Direct descendents
Child Class Description
Doctrine_Relation_Association_Self Doctrine_Relation_Association_Self
Doctrine_Relation_Nest Doctrine_Relation_Association_Self

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Relation

Doctrine_Relation::$definition

Inherited From Doctrine_Relation

Doctrine_Relation::__construct()
constructor
Doctrine_Relation::fetchRelatedFor()
fetchRelatedFor
Doctrine_Relation::getAlias()
getAlias returns the relation alias
Doctrine_Relation::getForeign()
getForeign returns the name of the foreignkey column where the localkey column is pointing at
Doctrine_Relation::getLocal()
getLocal returns the name of the local column
Doctrine_Relation::getRelationDql()
getRelationDql
Doctrine_Relation::getTable()
getTable returns the foreign table object
Doctrine_Relation::getType()
getType returns the relation type, either 0 or 1
Doctrine_Relation::hasConstraint()
hasConstraint whether or not this relation has an explicit constraint
Doctrine_Relation::isComposite()
isComposite returns whether or not this relation is a composite relation
Doctrine_Relation::isDeferrable()
Doctrine_Relation::isDeferred()
Doctrine_Relation::isEqual()
Doctrine_Relation::isOneToOne()
isOneToOne returns whether or not this relation is a one-to-one relation
Doctrine_Relation::offsetExists()
Doctrine_Relation::offsetGet()
Doctrine_Relation::offsetSet()
Doctrine_Relation::offsetUnset()
Doctrine_Relation::toArray()
toArray
Doctrine_Relation::__toString()
__toString

Inherited From Doctrine_Relation

Doctrine_Relation::MANY
Doctrine_Relation::MANY_AGGREGATE
Doctrine_Relation::MANY_COMPOSITE
Doctrine_Relation::ONE
Doctrine_Relation::ONE_AGGREGATE
Doctrine_Relation::ONE_COMPOSITE

[ Top ]
Method Summary
Doctrine_Record|Doctrine_Collection   fetchRelatedFor()   fetchRelatedFor
Doctrine_Table   getAssociationFactory()  
void   getAssociationTable()  
string   getRelationDql()   getRelationDql

[ Top ]
Properties
Methods
fetchRelatedFor  [line 83]

  Doctrine_Record|Doctrine_Collection fetchRelatedFor( Doctrine_Record $record  )

fetchRelatedFor

fetches a component related to given record

Parameters:
Doctrine_Record   $record: 

API Tags:
Access:  public


Redefinition of:
Doctrine_Relation::fetchRelatedFor()
fetchRelatedFor

Redefined in descendants as:

[ Top ]
getAssociationFactory  [line 41]

  Doctrine_Table getAssociationFactory( )


API Tags:
Access:  public


[ Top ]
getAssociationTable  [line 45]

  void getAssociationTable( )


API Tags:
Access:  public


[ Top ]
getRelationDql  [line 55]

  string getRelationDql( integer $count, [ $context = 'record']  )

getRelationDql

Parameters:
integer   $count: 
   $context: 

API Tags:
Access:  public


Redefinition of:
Doctrine_Relation::getRelationDql()
getRelationDql

Redefined in descendants as:

[ Top ]