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

Trait for DAO relations. More...

+ Inheritance diagram for OrmUtilsRelationsTrait:

Static Public Member Functions

static getAnnotationInfoMember ($class, $keyAnnotation, $member)
 
static getAnnotationInfo ($class, $keyAnnotation)
 
static getTableName ($class)
 
static getFirstKey ($class)
 
static getModelMetadata ($className)
 
static getKeyFieldsAndValues ($instance)
 
static getJoinTables ($class)
 
static getAllJoinTables ($models)
 
static getFieldsInRelations ($class)
 
static getRelationInfos ($class)
 
static getFieldsInRelations_ ($class)
 
static getFieldsInRelationsForUpdate_ ($class)
 
static getAnnotFieldsInRelations ($class)
 
static getUJoinSQL ($db, $model, $arrayAnnot, $field, &$aliases, $quote)
 
static getOneToManyFields ($class)
 
static getRemoveCascadeFields ($class, $keyAnnotation='#oneToMany')
 
static getManyToOneFields ($class)
 
static getManyToManyFields ($class)
 
static getDefaultFk ($classname)
 
static getMemberJoinColumns ($instance, $member, $metaDatas=NULL)
 
static getManyToOneMembersAndValues ($instance)
 
static getJoinColumnName ($class, $member)
 
static isManyToMany ($class)
 
static getManyToManyFieldsDt ($class, $manyClass)
 

Static Private Member Functions

static getJoinAlias ($table, $fkTable)
 

Detailed Description

Trait for DAO relations.

Ubiquity\orm\traits$OrmUtilsRelationsTrait 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.8

Definition at line 16 of file OrmUtilsRelationsTrait.php.

Member Function Documentation

◆ getAllJoinTables()

static getAllJoinTables (   $models)
static

Definition at line 42 of file OrmUtilsRelationsTrait.php.

◆ getAnnotationInfo()

static getAnnotationInfo (   $class,
  $keyAnnotation 
)
staticabstract

Reimplemented in OrmUtils.

◆ getAnnotationInfoMember()

static getAnnotationInfoMember (   $class,
  $keyAnnotation,
  $member 
)
staticabstract

Reimplemented in OrmUtils.

◆ getAnnotFieldsInRelations()

static getAnnotFieldsInRelations (   $class)
static

Definition at line 112 of file OrmUtilsRelationsTrait.php.

◆ getDefaultFk()

static getDefaultFk (   $classname)
static

Definition at line 203 of file OrmUtilsRelationsTrait.php.

◆ getFieldsInRelations()

static getFieldsInRelations (   $class)
static

Definition at line 50 of file OrmUtilsRelationsTrait.php.

◆ getFieldsInRelations_()

static getFieldsInRelations_ (   $class)
static

Definition at line 85 of file OrmUtilsRelationsTrait.php.

◆ getFieldsInRelationsForUpdate_()

static getFieldsInRelationsForUpdate_ (   $class)
static

Definition at line 89 of file OrmUtilsRelationsTrait.php.

◆ getFirstKey()

static getFirstKey (   $class)
staticabstract

◆ getJoinAlias()

static getJoinAlias (   $table,
  $fkTable 
)
staticprivate

Definition at line 171 of file OrmUtilsRelationsTrait.php.

◆ getJoinColumnName()

static getJoinColumnName (   $class,
  $member 
)
static

Definition at line 260 of file OrmUtilsRelationsTrait.php.

◆ getJoinTables()

static getJoinTables (   $class)
static

Definition at line 30 of file OrmUtilsRelationsTrait.php.

◆ getKeyFieldsAndValues()

static getKeyFieldsAndValues (   $instance)
staticabstract

◆ getManyToManyFields()

static getManyToManyFields (   $class)
static

Definition at line 196 of file OrmUtilsRelationsTrait.php.

◆ getManyToManyFieldsDt()

static getManyToManyFieldsDt (   $class,
  $manyClass 
)
static

Definition at line 290 of file OrmUtilsRelationsTrait.php.

◆ getManyToOneFields()

static getManyToOneFields (   $class)
static

Definition at line 192 of file OrmUtilsRelationsTrait.php.

◆ getManyToOneMembersAndValues()

static getManyToOneMembersAndValues (   $instance)
static
Parameters
object$instance
Returns
mixed[]

Definition at line 230 of file OrmUtilsRelationsTrait.php.

◆ getMemberJoinColumns()

static getMemberJoinColumns (   $instance,
  $member,
  $metaDatas = NULL 
)
static

Definition at line 207 of file OrmUtilsRelationsTrait.php.

◆ getModelMetadata()

static getModelMetadata (   $className)
staticabstract

Reimplemented in OrmUtils.

◆ getOneToManyFields()

static getOneToManyFields (   $class)
static

Definition at line 175 of file OrmUtilsRelationsTrait.php.

◆ getRelationInfos()

static getRelationInfos (   $class)
static

Definition at line 65 of file OrmUtilsRelationsTrait.php.

◆ getRemoveCascadeFields()

static getRemoveCascadeFields (   $class,
  $keyAnnotation = '#oneToMany' 
)
static

Definition at line 179 of file OrmUtilsRelationsTrait.php.

◆ getTableName()

static getTableName (   $class)
staticabstract

Reimplemented in OrmUtils.

◆ getUJoinSQL()

static getUJoinSQL (   $db,
  $model,
  $arrayAnnot,
  $field,
$aliases,
  $quote 
)
static

Definition at line 135 of file OrmUtilsRelationsTrait.php.

◆ isManyToMany()

static isManyToMany (   $class)
static

Definition at line 270 of file OrmUtilsRelationsTrait.php.


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