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
33b23eda
Commit
33b23eda
authored
Nov 03, 2006
by
runa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added setRelation and getRelations
parent
870ce442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
Table.php
lib/Doctrine/Schema/Table.php
+22
-1
No files found.
lib/Doctrine/Schema/Table.php
View file @
33b23eda
...
@@ -39,7 +39,10 @@ class Doctrine_Schema_Table extends Doctrine_Schema_Object implements Countable,
...
@@ -39,7 +39,10 @@ class Doctrine_Schema_Table extends Doctrine_Schema_Object implements Countable,
'check'
=>
''
,
'check'
=>
''
,
'charset'
=>
''
,
'charset'
=>
''
,
'description'
=>
''
);
'description'
=>
''
);
/**
* Relations this table has with others. An array of Doctrine_Schema_Relation
*/
private
$relations
=
array
();
/**
/**
*
*
* @return bool
* @return bool
...
@@ -78,4 +81,22 @@ class Doctrine_Schema_Table extends Doctrine_Schema_Object implements Countable,
...
@@ -78,4 +81,22 @@ class Doctrine_Schema_Table extends Doctrine_Schema_Object implements Countable,
return
$this
;
return
$this
;
}
}
/**
* Adds a relation between a local column and a 2nd table / column
*
* @param Doctrine_Schema_Relation Relation
*
*/
public
function
setRelation
(
Doctrine_Schema_Relation
$relation
){
$this
->
relations
[]
=
$relation
;
}
/**
* Return all the relations this table has with others
*
* @return array Array of Doctrine_Schema_Relation
*/
public
function
getRelations
(){
return
$this
->
relations
;
}
}
}
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