Source API for the «PorteAssociations_ManyToManyListTransient» class
PorteAssociations_ManyToManyListTransient
Public static methods
- sanitize
-
This method is not yet documented.
- set
-
Note, except the last two lines (the class name which could be provided as argument) code is identical to PorteAssociations_ManyToManyListPersisted::set
-
- return
- PorteRecord
- Current record provided as 2nd argument
- String
- $property, Name
- of the property being accessed
- PorteRecord
- $record, Current
- record
- mixed (string,int,array,PorteRecord)
- $assocRecord, Record
- to be associated with the current record
- addRecord
-
many-to-many without a join table from the transient side
-
- return
- PorteIterator
- Iterator containing the associated records
- String
- $property, Name
- of the property being accessed
- PorteRecord
- $record
- PorteIterator
- $assocRecord, Record
- to be associated with the current record
- addRecords
-
many-to-many without a join table from the transient side
-
- return
- PorteIterator
- Iterator containing the associated records
- String
- $property, Name
- of the property being accessed
- PorteRecord
- $record
- PorteIterator
- $assocRecords, Records
- to be associated with the current record
- get
-
many-to-many without a join table from the transient side
-
- return
- PorteIterator
- Iterator containing the associated records
- String
- $property, Name
- of the property being accessed
- PorteRecord
- $record
- array[optional]
- $options, Optional
- array
- deleteRecord
-
This method is not yet documented.
- deleteRecords
-
Since we are deleting from the transient side, we need to load each associations and call their remove method. Then, when we call the save method, the assoc will themselves be saved and the assoc removed at the same time.
When deleting on a new transient record, there is no need to load assoc since they can't reference a new saved record.
-
- return
- Object
- $property
- Object
- $record
- Object
- $assocRecords
- hasChanged
-
This method is not yet documented.
- save
-
This method is not yet documented.
- countRecords
-
This method is not yet documented.
- fromArray
-
This method is not yet documented.
- toArray
-
This method is not yet documented.