lib/Relationship.php
private function getForeignKeyForNewAssociation(Model $model)
	{
		$this->setKeys($model);
		$primaryKey = Inflector::instance()->variablize($this->foreignKey[0]);

		return array(
			$primaryKey => $model->id,
		);
	}
private function getForeignKeyForNewAssociation(Model $model)
	{
		$this->setKeys($model);
		$primaryKey = Inflector::instance()->variablize($this->foreignKey[0]);

		return array(
			$primaryKey => $model->id,
		);
	}
private function getForeignKeyForNewAssociation ( Model $ model ) { $ this -> setKeys ( $ model ) ; $ primaryKey = Inflector :: instance ( ) -> variablize ( $ this -> foreignKey [ 0 ] ) ; return array ( $ primaryKey => $ model -> id , ) ; }
Get an array containing the key and value of the foreign key for the association

@param Model $model
@access private
@return array
Get an array containing the key and value of the foreign key for the association