Constructor
-
ActiveRecord_Base
$record: An instance of the class the association is being added to
-
ActiveRecord_Proxy
$proxy: A proxy for the class to allow limited access to protected methods
-
string
$name: The association name
-
array
$options: Options for the association
Check the associate to make sure it has been saved
void
after_create
( $record)
Check the associate to make sure it has been saved
void
after_save
( $record)
Build a new associated object from an associative array of attributes and assign it to the object
-
ActiveRecord_Base
$record: An instance of the class the association is being added to
-
ActiveRecord_Proxy
$proxy: A proxy for the class to allow limited access to protected methods
-
array
$attributes: The attributes for the new object to associate with our record
Create and save a new associated object from an associative array of attributes and assign it to the object
-
ActiveRecord_Base
$record: An instance of the class the association is being added to
-
ActiveRecord_Proxy
$proxy: A proxy for the class to allow limited access to protected methods
-
array
$attributes: The attributes for the new object to associate with our record
Implements the 'include' behavior for a find operation
void
do_include
( &$results, array $results)
-
array
$results: The result set to process
-
&$results
Redefinition of:
- ActiveRecord_Association::do_include()
- Implements the 'include' behavior for a find operation
Accessor method for the associated object
-
ActiveRecord_Base
$record: An instance of the class the association is being added to
-
ActiveRecord_Proxy
$proxy: A proxy for the class to allow limited access to protected methods
-
boolean
$force_reload: If true, forces reloading of the object even if it's cached
Mutator method for the associated object
-
ActiveRecord_Base
$record: An instance of the class the association is being added to
-
ActiveRecord_Proxy
$proxy: A proxy for the class to allow limited access to protected methods
-
object
$value: The new object to associate with our record
-
boolean
$skipKeyUpdates: This flag exists for include operations assigning associated objects for caching. When this flag is true, the normal foreign key assignment and update steps are skipped and the object is merely placed in the cache.
Inherited Methods
Inherited From ActiveRecord_Association
ActiveRecord_Association::class_name()
ActiveRecord_Association::do_include()
ActiveRecord_Association::foreign_key()
ActiveRecord_Association::name()