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
f6d17b79
Commit
f6d17b79
authored
Jan 30, 2010
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0][DDC-286][DDC-287] Fixed missing method and casting. Thanks Hannes for reporting and patch.
parent
1e135d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
MappingException.php
lib/Doctrine/ORM/Mapping/MappingException.php
+6
-0
SchemaToolTask.php
lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php
+1
-1
No files found.
lib/Doctrine/ORM/Mapping/MappingException.php
View file @
f6d17b79
...
...
@@ -127,4 +127,10 @@ class MappingException extends \Doctrine\ORM\ORMException
return
new
self
(
'The column '
.
$joinColumn
.
' must be mapped to a field in class '
.
$className
.
' since it is referenced by a join column of another class.'
);
}
public
static
function
annotationDriverRequiresConfiguredDirectoryPath
()
{
return
new
self
(
'The annotation driver needs to have a directory path'
);
}
}
\ No newline at end of file
lib/Doctrine/ORM/Tools/Cli/Tasks/SchemaToolTask.php
View file @
f6d17b79
...
...
@@ -145,7 +145,7 @@ class SchemaToolTask extends AbstractTask
if
(
$metadataDriver
instanceof
\Doctrine\ORM\Mapping\Driver\AnnotationDriver
)
{
if
(
isset
(
$arguments
[
'class-dir'
]))
{
$metadataDriver
->
addPaths
(
$arguments
[
'class-dir'
]);
$metadataDriver
->
addPaths
(
(
array
)
$arguments
[
'class-dir'
]);
}
else
{
throw
new
CliException
(
'The supplied configuration uses the annotation metadata driver. '
.
...
...
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