Source API for the «PorteAssociations_ManyToManyListPersisted» class
PorteAssociations_ManyToManyListTransient This class implement a many-to-many strategy with a column storing list of foreign keys
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_ManyToManyListTransient::setRecords
-
- 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 with a column storing list of foreign keys
-
- 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
- addRecords
-
many-to-many with a join table
-
- 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 with a join table
-
- 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
-
Note, at the moment, we do not re-index the internal iterator array after unsetting a record
-
- return
- null
- string
- $property
- PorteRecord
- $record
- Object[optional]
- $deletedRecords
- deleteRecords_saveBefore
-
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.
- hasChanged
-
This method is not yet documented.
- save
-
This method is not yet documented.