|
static | _getIncludedForStep ($included) |
|
static | _initRelationFields ($included, $metaDatas, &$invertedJoinColumns, &$oneToManyFields, &$manyToManyFields) |
|
static | getManyToOne ($instance, $member, $included=false, $useCache=NULL) |
| Loads member associated with $instance by a ManyToOne relationship.
|
|
static | getOneToMany ($instance, $member, $included=true, $useCache=NULL, $annot=null) |
| Assign / load the child records in the $member member of $instance.
|
|
static | getManyToMany ($instance, $member, $included=false, $array=null, $useCache=NULL) |
| Assigns / loads the child records in the $member member of $instance.
|
|
static | affectsManyToManys ($instance, $array=NULL, $useCache=NULL) |
|
Definition at line 19 of file DAORelationsTrait.php.
◆ _getAll()
◆ _getIncludedForStep()
static _getIncludedForStep |
( |
|
$included | ) |
|
|
static |
◆ _initRelationFields()
static _initRelationFields |
( |
|
$included, |
|
|
|
$metaDatas, |
|
|
& |
$invertedJoinColumns, |
|
|
& |
$oneToManyFields, |
|
|
& |
$manyToManyFields |
|
) |
| |
|
static |
◆ affectsManyToManys()
static affectsManyToManys |
( |
|
$instance, |
|
|
|
$array = NULL , |
|
|
|
$useCache = NULL |
|
) |
| |
|
static |
◆ getInvertedJoinColumns()
static getInvertedJoinColumns |
( |
|
$included, |
|
|
& |
$invertedJoinColumns |
|
) |
| |
|
staticprivate |
◆ getManyToMany()
static getManyToMany |
( |
|
$instance, |
|
|
|
$member, |
|
|
|
$included = false , |
|
|
|
$array = null , |
|
|
|
$useCache = NULL |
|
) |
| |
|
static |
Assigns / loads the child records in the $member member of $instance.
If $array is null, the records are loaded from the database
- Parameters
-
object | array | $instance | The instance object or an array with [classname,id] |
string | $member | Member on which a ManyToMany annotation must be present |
boolean | array | $included | if true, loads associate members with associations, if array, example : ['client.*','commands'] |
array | $array | optional parameter containing the list of possible child records |
boolean | $useCache | |
Definition at line 206 of file DAORelationsTrait.php.
◆ getManyToManyFromArray()
static getManyToManyFromArray |
( |
|
$instance, |
|
|
|
$array, |
|
|
|
$class, |
|
|
|
$parser |
|
) |
| |
|
staticprivate |
◆ getManyToOne()
static getManyToOne |
( |
|
$instance, |
|
|
|
$member, |
|
|
|
$included = false , |
|
|
|
$useCache = NULL |
|
) |
| |
|
static |
Loads member associated with $instance by a ManyToOne relationship.
- Parameters
-
object | array | $instance | The instance object or an array with [classname,id] |
string | $member | The member to load |
boolean | array | $included | if true, loads associate members with associations, if array, example : ["client.*","commands"] |
boolean | null | $useCache | |
Definition at line 141 of file DAORelationsTrait.php.
◆ getOneToMany()
static getOneToMany |
( |
|
$instance, |
|
|
|
$member, |
|
|
|
$included = true , |
|
|
|
$useCache = NULL , |
|
|
|
$annot = null |
|
) |
| |
|
static |
Assign / load the child records in the $member member of $instance.
- Parameters
-
object | array | $instance | The instance object or an array with [classname,id] |
string | $member | Member on which a oneToMany annotation must be present |
boolean | array | $included | if true, loads associate members with associations, if array, example : ['client.*','commands'] |
boolean | $useCache | |
array | $annot | used internally |
Definition at line 176 of file DAORelationsTrait.php.
◆ getToManyFields()
static getToManyFields |
( |
|
$included, |
|
|
& |
$toManyFields |
|
) |
| |
|
staticprivate |
◆ parseEncludeMember()
static parseEncludeMember |
( |
& |
$ret, |
|
|
|
$includedMember |
|
) |
| |
|
staticprivate |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/orm/traits/DAORelationsTrait.php