Source API for the «PorteAssociations_OneToOneHasOne» class
Associations plugin class specific to one-to-one relations.
Public static methods
- sanitize
-
This method is not yet documented.
- get
-
Return the associated record or null if not defined.
-
- return
- mixed
- PorteRecord if association is defined or null
- string
- $property, Record
- property
- PorteRecord
- $record, Record
- recieving the association
- set
-
Associated record may be an object (instance of PorteRecord), an int (or a string casted to an int), an array (representing the record, like the return value of the "record->toArray" method) or null (if property not tagged as not_null).
-
- return
- PorteRecord
- Current record
- string
- $property, Record
- property
- PorteRecord
- $record, Record
- recieving the association
- mixed[optional]
- $assocRecord, Associated
- record as a record, primary key, array or null; default to null of not provided
- deleteRecord
-
Break the association if one existed.
-
- return
- PorteRecord
- Current record
- string
- $property, Record
- property
- PorteRecord
- $record, Record
- recieving the association
- fromArray
-
This method is not yet documented.
- toArray
-
This method is not yet documented.
- hasChanged
-
This method is not yet documented.