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
c5e60f3e
Commit
c5e60f3e
authored
Jan 23, 2008
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted ownsOne and ownsMany methods errors to be better descriptives
parent
5eecd969
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Abstract.php
lib/Doctrine/Record/Abstract.php
+8
-2
No files found.
lib/Doctrine/Record/Abstract.php
View file @
c5e60f3e
...
...
@@ -211,7 +211,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/
public
function
ownsOne
()
{
throw
new
Doctrine_Exception
(
'ownsMany() has been deprecated.'
);
throw
new
Doctrine_Exception
(
'ownsMany() has been deprecated. '
.
'To create a composite relationship, use hasMany() with onDelete CASCADE option.'
);
}
/**
...
...
@@ -227,7 +230,10 @@ abstract class Doctrine_Record_Abstract extends Doctrine_Access
*/
public
function
ownsMany
()
{
throw
new
Doctrine_Exception
(
'ownsOne() has been deprecated.'
);
throw
new
Doctrine_Exception
(
'ownsOne() has been deprecated. '
.
'To create a composite relationship, use hasOne() with onDelete CASCADE option.'
);
}
/**
...
...
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