All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes
RedBeanManyToManyRelatedModels Class Reference
Inheritance diagram for RedBeanManyToManyRelatedModels:
RedBeanMutableRelatedModels RedBeanModels

Public Member Functions

 __construct (RedBean_OODBBean $bean, $modelClassName, $linkType, $linkName=null)
 getModelClassName ()
 getErrors ($attributeNameOrNames=null)
 validate (array $attributeNames=null)
 save ($runValidation=true)
 getTableName (RedBean_OODBBean $bean=null)
- Public Member Functions inherited from RedBeanModels
 __toString ()
 offsetSet ($i, $value)
 offsetExists ($i)
 offsetUnset ($i)
 offsetGet ($i)
 rewind ()
 current ()
 key ()
 next ()
 valid ()
 count ()
 contains (RedBeanModel $model)
 hasErrors ($attributeNameOrNames)
 validate (array $attributeNames=null)
 save ($runValidation=true)
 isModified ()

Static Public Member Functions

static getTableNameByModelClassNames ($modelClassName, $anotherModelClassName, $linkName=null)

Static Protected Member Functions

static resolveTableNamesWithLinkName (array $tableNames, $linkName=null)

Protected Attributes

 $inside = false
- Protected Attributes inherited from RedBeanModels
 $relatedBeansAndModels = array()

Additional Inherited Members

- Protected Member Functions inherited from RedBeanModels
 getByIndex ($i)

Detailed Description

Relates models as RedBean associations, so that the relationship is M:N via a join table.

Definition at line 44 of file RedBeanManyToManyRelatedModels.php.

Constructor & Destructor Documentation

__construct ( RedBean_OODBBean  $bean,
  $linkName = null 

Constructs a new RedBeanModels which is a collection of classes extending model. The models are created lazily. Models are only constructed with beans by the model. Beans are never used by the application directly.

Definition at line 56 of file RedBeanManyToManyRelatedModels.php.

The documentation for this class was generated from the following file:
Generated on Fri Feb 28 2020 07:10:58