Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DAORelationsPrepareTrait Class Reference

Used by DAO class, prepare relations for loading. More...

+ Inheritance diagram for DAORelationsPrepareTrait:

Static Protected Member Functions

static prepareManyToMany ($db, &$ret, $instance, $member, $annot=null)
 Prepares members associated with $instance with a ManyToMany type relationship.
 
static prepareOneToMany (&$ret, $instance, $member, $annot=null)
 Prepares members associated with $instance with a oneToMany type relationship.
 
static prepareManyToOne (&$ret, $instance, $value, $fkField, $annotationArray)
 Prepares members associated with $instance with a manyToOne type relationship.
 

Detailed Description

Used by DAO class, prepare relations for loading.

Ubiquity\orm\traits$DAORelationsPrepareTrait This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.4

Definition at line 19 of file DAORelationsPrepareTrait.php.

Member Function Documentation

◆ prepareManyToMany()

static prepareManyToMany (   $db,
$ret,
  $instance,
  $member,
  $annot = null 
)
staticprotected

Prepares members associated with $instance with a ManyToMany type relationship.

Parameters
$db
$retarray of sql conditions
object$instance
string$memberMember on which a ManyToMany annotation must be present
array$annotused internally

Definition at line 30 of file DAORelationsPrepareTrait.php.

◆ prepareManyToOne()

static prepareManyToOne ( $ret,
  $instance,
  $value,
  $fkField,
  $annotationArray 
)
staticprotected

Prepares members associated with $instance with a manyToOne type relationship.

Parameters
$retarray of sql conditions
object$instance
mixed$value
string$fkField
array$annotationArray

Definition at line 91 of file DAORelationsPrepareTrait.php.

◆ prepareOneToMany()

static prepareOneToMany ( $ret,
  $instance,
  $member,
  $annot = null 
)
staticprotected

Prepares members associated with $instance with a oneToMany type relationship.

Parameters
$retarray of sql conditions
object$instance
string$memberMember on which a OneToMany annotation must be present
array$annotused internally

Definition at line 59 of file DAORelationsPrepareTrait.php.


The documentation for this class was generated from the following file: