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
01d6a61a
Commit
01d6a61a
authored
Sep 29, 2009
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Fixes for some strict standards notices and other various things
parent
8c5887d0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
20 deletions
+29
-20
ClassMetadata.php
lib/Doctrine/ORM/Mapping/ClassMetadata.php
+1
-1
ClassMetadataFactory.php
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
+9
-3
YamlDriver.php
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php
+18
-15
SchemaTool.php
lib/Doctrine/ORM/Tools/SchemaTool.php
+1
-1
No files found.
lib/Doctrine/ORM/Mapping/ClassMetadata.php
View file @
01d6a61a
...
...
@@ -358,7 +358,7 @@ final class ClassMetadata
*
* @var array
*/
public
$reflFields
;
public
$reflFields
=
array
()
;
/**
* The ID generator used for generating IDs for this class.
...
...
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php
View file @
01d6a61a
...
...
@@ -201,8 +201,12 @@ class ClassMetadataFactory
}
else
if
(
$parent
->
isIdGeneratorTable
())
{
$class
->
getTableGeneratorDefinition
(
$parent
->
getTableGeneratorDefinition
());
}
$class
->
setIdGeneratorType
(
$parent
->
generatorType
);
$class
->
setIdGenerator
(
$parent
->
getIdGenerator
());
if
(
$generatorType
=
$parent
->
generatorType
)
{
$class
->
setIdGeneratorType
(
$generatorType
);
}
if
(
$idGenerator
=
$parent
->
getIdGenerator
())
{
$class
->
setIdGenerator
(
$idGenerator
);
}
}
else
{
$this
->
_completeIdGeneratorMapping
(
$class
);
}
...
...
@@ -218,7 +222,9 @@ class ClassMetadataFactory
$this
->
_evm
->
dispatchEvent
(
Events
::
loadClassMetadata
,
$eventArgs
);
}
if
(
!
$class
->
isMappedSuperclass
)
{
$this
->
_generateStaticSql
(
$class
);
}
$this
->
_loadedMetadata
[
$className
]
=
$class
;
...
...
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php
View file @
01d6a61a
...
...
@@ -22,7 +22,8 @@
namespace
Doctrine\ORM\Mapping\Driver
;
use
Doctrine\ORM\Mapping\ClassMetadata
,
Doctrine\Common\DoctrineException
;
Doctrine\Common\DoctrineException
,
Doctrine\ORM\Mapping\MappingException
;
if
(
!
class_exists
(
'sfYaml'
,
false
))
{
require_once
__DIR__
.
'/../../../../vendor/sfYaml/sfYaml.class.php'
;
...
...
@@ -152,6 +153,7 @@ class YamlDriver extends AbstractFileDriver
}
}
if
(
isset
(
$element
[
'id'
]))
{
// Evaluate identifier settings
foreach
(
$element
[
'id'
]
as
$name
=>
$idElement
)
{
$mapping
=
array
(
...
...
@@ -168,7 +170,8 @@ class YamlDriver extends AbstractFileDriver
if
(
isset
(
$idElement
[
'generator'
]))
{
$metadata
->
setIdGeneratorType
(
constant
(
'Doctrine\ORM\Mapping\ClassMetadata::GENERATOR_TYPE_'
.
$idElement
[
'generator'
][
'strategy'
]));
.
strtoupper
(
$idElement
[
'generator'
][
'strategy'
])));
}
}
}
...
...
lib/Doctrine/ORM/Tools/SchemaTool.php
View file @
01d6a61a
...
...
@@ -86,7 +86,7 @@ class SchemaTool
$sequences
=
array
();
// Sequence SQL statements. Appended to $sql at the end.
foreach
(
$classes
as
$class
)
{
if
(
isset
(
$processedClasses
[
$class
->
name
]))
{
if
(
isset
(
$processedClasses
[
$class
->
name
])
||
$class
->
isMappedSuperclass
)
{
continue
;
}
...
...
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