Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
870ce442
Commit
870ce442
authored
Nov 03, 2006
by
runa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relation is the relation between 1 column in the local table and 1 column in a second table
parent
36e69beb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
Relation.php
lib/Doctrine/Schema/Relation.php
+19
-9
No files found.
lib/Doctrine/Schema/Relation.php
View file @
870ce442
...
...
@@ -36,16 +36,23 @@
class
Doctrine_Schema_Relation
extends
Doctrine_Schema_Object
{
/**
* Column
s that refer
to another table
* Column
that refers
to another table
* @access public
*/
public
$referencing
Fields
;
public
$referencing
Column
;
/**
* Column
s that are
referred from another table
* Column
that is
referred from another table
* @access public
*/
public
$referredFields
;
public
$referencedColumn
;
/**
* Table where the referred column lives
* @access public
*
*/
public
$referencedTable
;
/**
* ON UPDATE or ON DELETE action
...
...
@@ -85,13 +92,16 @@ class Doctrine_Schema_Relation extends Doctrine_Schema_Object {
/**
*
* @param Doctrine_Schema_Column referringColumns
* @param Doctrine_Schema_Column referencedColumns
* @param Doctrine_Schema_Column referencing
* @param Doctrine_Schema_Table referencedtable
* @param Doctrine_Schema_Column referencedColumn
* @return
* @access public
*/
public
function
setRelationBetween
(
$referringColumns
,
$referencedColumns
)
{
public
function
setRelationBetween
(
$referencingColumn
,
$referencedTable
,
$referencedColumn
)
{
$this
->
referencingColumn
=
$referencingColumn
;
$this
->
referencedTable
=
$referencedTable
;
$this
->
referencedColumn
=
$referencedColumn
;
}
/**
*
...
...
@@ -99,7 +109,7 @@ class Doctrine_Schema_Relation extends Doctrine_Schema_Object {
* @access public
*/
public
function
__toString
(
)
{
return
"Relation between '"
.
$this
->
referencingColumn
.
"' and '"
.
$this
->
referencedTable
.
"'.'"
.
$this
->
referencingColumn
.
"'"
;
}
/**
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment