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
62f72a70
Commit
62f72a70
authored
Jun 14, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
0bf5bf83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
Relation.php
lib/Doctrine/Relation.php
+24
-12
No files found.
lib/Doctrine/Relation.php
View file @
62f72a70
...
...
@@ -67,6 +67,7 @@ abstract class Doctrine_Relation
'onDelete'
=>
false
,
'onUpdate'
=>
false
,
'deferred'
=>
false
,
'deferrable'
=>
false
,
'constraint'
=>
false
,
'equal'
=>
false
,
);
...
...
@@ -94,7 +95,7 @@ abstract class Doctrine_Relation
*
* type the relation type, either Doctrine_Relation::ONE or Doctrine_Relation::MANY
*
* constraint boolean value, true if the relation
needs
referential integrity constraint
* constraint boolean value, true if the relation
has an explicit
referential integrity constraint
*
* The onDelete and onUpdate keys accept the following values:
*
...
...
@@ -131,10 +132,30 @@ abstract class Doctrine_Relation
$this
->
definition
=
$def
;
}
/**
* hasConstraint
* whether or not this relation has an explicit constraint
*
* @return boolean
*/
public
function
hasConstraint
()
{
return
(
$this
->
definition
[
'constraint'
]
||
(
$this
->
definition
[
'onUpdate'
])
||
(
$this
->
definition
[
'onDelete'
]));
}
public
function
isDeferred
()
{
return
$this
->
definition
[
'deferred'
];
}
public
function
isDeferrable
()
{
return
$this
->
definition
[
'deferrable'
];
}
public
function
isEqual
()
{
return
$this
->
definition
[
'equal'
];
return
$this
->
definition
[
'equal'
];
}
/**
* toArray
...
...
@@ -145,15 +166,6 @@ abstract class Doctrine_Relation
{
return
$this
->
definition
;
}
/**
* hasConstraint
*
* @return boolean
*/
public
function
hasConstraint
()
{
return
$this
->
definition
[
'constraint'
];
}
/**
* getAlias
* returns the relation alias
...
...
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