ActiveRecord_Association_HasOneImplements the has_one association
Located in /activerecord/lib/ActiveRecord/Association/HasOne.php (line 9)
ActiveRecord_Association | --ActiveRecord_Association_HasOne
ActiveRecord_Association_HasOne
__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])
void
set_associate
(ActiveRecord_Base $record, ActiveRecord_Proxy $proxy, object $value, [boolean $skipKeyUpdates = false])
static mixed
$creation_options
= array('class_name'=>1, 'foreign_key'=>1, 'primary_key'=>1) (line 14)
List of valid options for creation
mixed
$primary_key
(line 16)
Inherited from ActiveRecord_Association
ActiveRecord_Association::$class_name
ActiveRecord_Association::$foreign_key
ActiveRecord_Association::$name
Constructor __construct (line 26)
Constructor
after_create (line 107)
Check the associate to make sure it has been saved
after_save (line 121)
Check the associate to make sure it has been saved
build_associate (line 138)
Build a new associated object from an associative array of attributes and assign it to the object
create_associate (line 161)
Create and save a new associated object from an associative array of attributes and assign it to the object
do_include (line 181)
Implements the 'include' behavior for a find operation
get_associate (line 56)
Accessor method for the associated object
set_associate (line 76)
Mutator method for the associated 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:43 -0700 by phpDocumentor 1.4.3