ProtoDAO Class Reference
[Root classes for building DAO hierarchies]

Inheritance diagram for ProtoDAO:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 fetchCollections ($collections, $list)
 guessAtom ($atom, JoinCapableQuery $query, $table=null, $parentRequired=true, $prefix=null)

Private Member Functions

 processPath (AbstractProtoClass $proto, $probablyPath, JoinCapableQuery $query, $table, $parentRequired=true, $prefix=null)


Detailed Description

Definition at line 16 of file ProtoDAO.class.php.


Member Function Documentation

ProtoDAO::fetchCollections ( collections,
list 
)

Definition at line 18 of file ProtoDAO.class.php.

References DBField::create(), GenericDAO::getFields(), GenericDAO::getIdName(), ArrayUtils::getIdsArray(), GenericDAO::getObjectName(), GenericDAO::getTable(), Expression::in(), Assert::isTrue(), MetaRelation::MANY_TO_MANY, Expression::notNull(), MetaRelation::ONE_TO_MANY, processPath(), and OSQL::select().

Here is the call graph for this function:

ProtoDAO::processPath ( AbstractProtoClass proto,
probablyPath,
JoinCapableQuery query,
table,
parentRequired = true,
prefix = null 
) [private]

Definition at line 142 of file ProtoDAO.class.php.

References DBField::create(), Expression::eq(), GenericDAO::getIdName(), GenericDAO::getObjectName(), AbstractProtoClass::getPropertyByName(), GenericDAO::getTable(), Assert::isNotNull(), Assert::isTrue(), JoinCapableQuery::join(), JoinCapableQuery::leftJoin(), MetaRelation::MANY_TO_MANY, and MetaRelation::ONE_TO_MANY.

Referenced by fetchCollections(), and guessAtom().

Here is the call graph for this function:

ProtoDAO::guessAtom ( atom,
JoinCapableQuery query,
table = null,
parentRequired = true,
prefix = null 
)

Definition at line 296 of file ProtoDAO.class.php.

References GenericDAO::$mapping, GenericDAO::getMapping(), GenericDAO::getObjectName(), GenericDAO::getTable(), and processPath().

Referenced by SQLFunction::toMapped(), PrefixUnaryExpression::toMapped(), PostfixUnaryExpression::toMapped(), LogicalBetween::toMapped(), InExpression::toMapped(), EqualsLowerExpression::toMapped(), and BinaryExpression::toMapped().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:17 2007 for onPHP by  doxygen 1.5.4