ActiveRecord_Association_BelongsToImplements the belongs_to association
Located in /activerecord/lib/ActiveRecord/Association/BelongsTo.php (line 54)
ActiveRecord_Association | --ActiveRecord_Association_BelongsTo
ActiveRecord_Association_BelongsTo
__construct
(ActiveRecord_Base $record, ActiveRecord_Proxy $proxy, string $name, array $options)
ActiveRecord_Base
build_associate
(ActiveRecord_Base $record, ActiveRecord_Proxy $proxy, array $attributes)
ActiveRecord_Base
create_associate
(ActiveRecord_Base $record, ActiveRecord_Proxy $proxy, array $attributes)
ActiveRecord_Base
get_associate
(ActiveRecord_Base $record, ActiveRecord_Proxy $proxy, [boolean $force_reload = false])
static mixed
$creation_options
= array('class_name'=>1, 'foreign_key'=>1, 'validate_key'=>1) (line 59)
List of valid options for creation
Inherited from ActiveRecord_Association
ActiveRecord_Association::$class_name
ActiveRecord_Association::$foreign_key
ActiveRecord_Association::$name
Constructor __construct (line 69)
Constructor
before_save (line 149)
Check the associate to make sure it has been saved
build_associate (line 168)
Build a new associated object from an associative array of attributes and assign it to the object
create_associate (line 189)
Create and save a new associated object from an associative array of attributes and assign it to the object
do_include (line 207)
Implements the 'include' behavior for a find operation
get_associate (line 118)
Accessor method for the associated object
set_associate (line 136)
Mutator method for the associated object
set_foreign_key (line 102)
Mutator method for the foreign key. This is redefined to invalidate any cached object.
Inherited From ActiveRecord_Association
ActiveRecord_Association::class_name()
ActiveRecord_Association::do_include()
ActiveRecord_Association::foreign_key()
ActiveRecord_Association::name()
Documentation generated on Wed, 25 Apr 2012 09:46:41 -0700 by phpDocumentor 1.4.3