src/Database/ORM/Traits/Relationships.php
/**
	 * This model has another derivative model.
	 *
	 * @param string $model
	 * @param string $foreignKey
	 * @param string $localKey
	 * @return OneToOneRelationship
	 */
This model has another derivative model.
@param string $model
@param string $foreignKey
@param string $localKey
@return OneToOneRelationship
This model has another derivative model . @param string $model @param string $foreignKey @param string $localKey @return OneToOneRelationship
protected function hasOne($model, $foreignKey = null, $localKey = null) {
		if (is_null($localKey)) {
			$localKey = $this->primaryKey;
		}
		if (is_null($foreignKey)) {
			$foreignKey = StringBuilder::getSingularModelName($this) . '_' . $localKey;
		}
		return new OneToOneRelationship($this, $model, $foreignKey, $localKey);
	}
protected function hasOne ( $ model , $ foreignKey = null , $ localKey = null ) { if ( is_null ( $ localKey ) ) { $ localKey = $ this -> primaryKey ; } if ( is_null ( $ foreignKey ) ) { $ foreignKey = StringBuilder :: getSingularModelName ( $ this ) . '_' . $ localKey ; } return new OneToOneRelationship ( $ this , $ model , $ foreignKey , $ localKey ) ; }
This model has another derivative model.
This model has another derivative model .