AkObject | --AkBaseModel | --AkAssociatedActiveRecord
Located in File: /AkActiveRecord/AkAssociatedActiveRecord.php
association=(associate) - assigns the associate object, extracts the primary key, sets it as the foreign key, and saves the associate object. association.nil? - returns true if there is no associated object. build_association(attributes = {}) - returns a new object of the associated type that has been instantiated with attributes and linked to this object through a foreign key but has not yet been saved. Note: This ONLY works if an association already exists. It will NOT work if the association is nil. create_association(attributes = {}) - returns a new object of the associated type that has been instantiated with attributes and linked to this object through a foreign key and that has already been saved (if it passed the validation). Account#beneficiary (similar to Beneficiary.find(:first, :conditions => "account_id = #{id}")) Account#beneficiary=(beneficiary) (similar to beneficiary.account_id = account.id; beneficiary.save) Account#beneficiary.nil? Account#build_beneficiary (similar to Beneficiary.new("account_id" => id)) Account#create_beneficiary (similar to b = Beneficiary.new("account_id" => id); b.save; b)
Method build (line 119)
Method constructFinderSqlWithAssociations (line 304)
Method create (line 129)
Overridden in child classes as:
Method find (line 147)
Overridden in child classes as:
Method findWithAssociations (line 231)
Method getAssociated (line 91)
Method getAssociatedFinderSqlOptions (line 175)
Method getAssociatedHandlerName (line 205)
Method getCollectionHandlerName (line 285)
Method getId (line 100)
Overridden in child classes as:
Method getType (line 220)
Overridden in child classes as:
Method replace (line 138)
Method setAssociationHandler (line 59)
Method setAssociationOption (line 185)
Method _addTableAliasesToAssociatedSql (line 419)
Method _findBySqlWithAssociations (line 338)
Method _loadAssociationHandler (line 49)
AkBaseModel::$_modelName -
AkBaseModel::getModelName() - Returns current model name
AkBaseModel::getParentModelName() -
AkBaseModel::setModelName() - Sets current model name
AkBaseModel::setParentModelName() -
AkBaseModel::_getIncludedModelNames() -
AkBaseModel::_getModelName() - This method will nicely handle model names even on
AkObject::AkObject() - A hack to support __construct() on PHP 4
AkObject::__construct() - Class constructor, overriden in descendant classes
AkObject::freeMemory() - Unsets circular reference children that are not freed from memory when calling unset() or when the parent object is garbage collected.
AkObject::log() -
AkObject::toString() - Object-to-string conversion
AkObject::__clone() - Clone class (Zend Engine 2 compatibility trick)
AkObject::__destruct() - Class destructor, overriden in descendant classes
AkObject::__toString() -