\HeaderA{aRTtable-createRelation}{Create a new table relation}{aRTtable.Rdash.createRelation}
\aliasA{createRelation}{aRTtable-createRelation}{createRelation}
\aliasA{createRelation,aRTtable-method}{aRTtable-createRelation}{createRelation,aRTtable.Rdash.method}
\keyword{database}{aRTtable-createRelation}
\begin{Description}\relax
(not implemented)
Function that creates a new relation between two database tables.
To access the joining of this two tables create an \code{aRTtheme}
object using both.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S4 method for signature 'aRTtable':
createRelation(object, attr, rtable, rattr, cascadedel, relname)
## S4 method for signature 'aRTtable':
createRelation(object, attr="commonobj", rtable)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] \code{aRTtable} to be linked.
\item[\code{attr}] This tables attribute to be joined.
\item[\code{rtable}] The related table.
\item[\code{rattr}] Related table attribute. Default is \code{attr}.
\item[\code{cascadedel}] Delete data from object if their links are removed. Default is \code{FALSE}.
\item[\code{relname}] The relation's name.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Pedro Ribeiro de Andrade Neto
\end{Author}
\begin{SeeAlso}\relax
See \code{aRTtable-class} to show the description of this class.
\end{SeeAlso}

