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
455f8774
Commit
455f8774
authored
Jun 30, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Minor refactorings and docblock adjustments. Fixed #3202.
parent
6729ed28
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
18 deletions
+19
-18
AbstractFileDriver.php
lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php
+1
-1
AnnotationDriver.php
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
+9
-9
DoctrineAnnotations.php
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php
+0
-1
Driver.php
lib/Doctrine/ORM/Mapping/Driver/Driver.php
+1
-1
Query.php
lib/Doctrine/ORM/Query.php
+3
-3
UpdateItem.php
lib/Doctrine/ORM/Query/AST/UpdateItem.php
+2
-1
SqlWalker.php
lib/Doctrine/ORM/Query/SqlWalker.php
+1
-0
UnitOfWork.php
lib/Doctrine/ORM/UnitOfWork.php
+2
-2
No files found.
lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php
View file @
455f8774
...
...
@@ -24,7 +24,7 @@ namespace Doctrine\ORM\Mapping\Driver;
use
Doctrine\ORM\Mapping\MappingException
;
/**
*
SchemaMetadata mapping driver interface
*
Base driver for file-based metadata drivers.
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.com
...
...
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
View file @
455f8774
...
...
@@ -99,23 +99,23 @@ class AnnotationDriver implements Driver
$mapping
=
array
();
$mapping
[
'fieldName'
]
=
$property
->
getName
();
// Check for
DoctrineJoinColummn/Doctrine
JoinColumns annotations
// Check for
JoinColummn/
JoinColumns annotations
$joinColumns
=
array
();
if
(
$joinColumnAnnot
=
$property
->
getAnnotation
(
'JoinColumn'
))
{
$joinColumns
[]
=
array
(
'name'
=>
$joinColumnAnnot
->
name
,
'referencedColumnName'
=>
$joinColumnAnnot
->
referencedColumnName
,
'unique'
=>
$joinColumnAnnot
->
unique
,
'nullable'
=>
$joinColumnAnnot
->
nullable
,
'onDelete'
=>
$joinColumnAnnot
->
onDelete
,
'onUpdate'
=>
$joinColumnAnnot
->
onUpdate
'name'
=>
$joinColumnAnnot
->
name
,
'referencedColumnName'
=>
$joinColumnAnnot
->
referencedColumnName
,
'unique'
=>
$joinColumnAnnot
->
unique
,
'nullable'
=>
$joinColumnAnnot
->
nullable
,
'onDelete'
=>
$joinColumnAnnot
->
onDelete
,
'onUpdate'
=>
$joinColumnAnnot
->
onUpdate
);
}
else
if
(
$joinColumnsAnnot
=
$property
->
getAnnotation
(
'JoinColumns'
))
{
$joinColumns
=
$joinColumnsAnnot
->
value
;
}
// Field can only be annotated with one of:
DoctrineColumn,
//
DoctrineOneToOne, DoctrineOneToMany, DoctrineManyToOne, Doctrine
ManyToMany
// Field can only be annotated with one of:
//
@Column, @OneToOne, @OneToMany, @ManyToOne, @
ManyToMany
if
(
$columnAnnot
=
$property
->
getAnnotation
(
'Column'
))
{
if
(
$columnAnnot
->
type
==
null
)
{
throw
DoctrineException
::
updateMe
(
"Missing type on property "
.
$property
->
getName
());
...
...
lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php
View file @
455f8774
...
...
@@ -54,7 +54,6 @@ final class Column extends \Annotation {
public
$unique
=
false
;
public
$nullable
=
false
;
public
$name
;
//public $quote = false;
}
final
class
OneToOne
extends
\Annotation
{
public
$targetEntity
;
...
...
lib/Doctrine/ORM/Mapping/Driver/Driver.php
View file @
455f8774
...
...
@@ -24,7 +24,7 @@ namespace Doctrine\ORM\Mapping\Driver;
use
Doctrine\ORM\Mapping\ClassMetadata
;
/**
*
SchemaMetadata mapping driver interface
*
Contract for metadata drivers.
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.com
...
...
lib/Doctrine/ORM/Query.php
View file @
455f8774
...
...
@@ -202,7 +202,7 @@ final class Query extends AbstractQuery
* Defines a cache driver to be used for caching queries.
*
* @param Doctrine_Cache_Interface|null $driver Cache driver
* @return
Doctrine_ORM_Query
* @return
Query This query instance.
*/
public
function
setQueryCacheDriver
(
$queryCache
)
{
...
...
@@ -229,7 +229,7 @@ final class Query extends AbstractQuery
* Defines how long the query cache will be active before expire.
*
* @param integer $timeToLive How long the cache entry is valid
* @return
Doctrine_ORM_Query
* @return
Query This query instance.
*/
public
function
setQueryCacheLifetime
(
$timeToLive
)
{
...
...
@@ -255,7 +255,7 @@ final class Query extends AbstractQuery
* Defines if the query cache is active or not.
*
* @param boolean $expire Whether or not to force query cache expiration.
* @return
Doctrine_ORM_Query
* @return
Query This query instance.
*/
public
function
setExpireQueryCache
(
$expire
=
true
)
{
...
...
lib/Doctrine/ORM/Query/AST/UpdateItem.php
View file @
455f8774
...
...
@@ -26,7 +26,8 @@ namespace Doctrine\ORM\Query\AST;
* NewValue ::= SimpleArithmeticExpression | StringPrimary | DatetimePrimary | BooleanPrimary |
* EnumPrimary | SimpleEntityExpression | "NULL"
*
* @author robo
* @author Roman Borschel <roman@code-factory.org>
* @since 2.0
*/
class
UpdateItem
extends
Node
{
...
...
lib/Doctrine/ORM/Query/SqlWalker.php
View file @
455f8774
...
...
@@ -32,6 +32,7 @@ use Doctrine\Common\DoctrineException;
* @author Roman Borschel <roman@code-factory.org>
* @since 2.0
* @todo Code review for identifier quoting.
* @todo Code review for schema usage with table names.
*/
class
SqlWalker
implements
TreeWalker
{
...
...
lib/Doctrine/ORM/UnitOfWork.php
View file @
455f8774
...
...
@@ -1536,8 +1536,8 @@ class UnitOfWork implements PropertyChangedListener
$this
->
_entityUpdates
[
$oid
]
=
$entity
;
}
else
if
(
$oldValue
instanceof
PersistentCollection
)
{
// A PersistentCollection was de-referenced, so delete it.
if
(
!
in_array
(
$o
rg
Value
,
$this
->
_collectionDeletions
,
true
))
{
$this
->
_collectionDeletions
[]
=
$o
rg
Value
;
if
(
!
in_array
(
$o
ld
Value
,
$this
->
_collectionDeletions
,
true
))
{
$this
->
_collectionDeletions
[]
=
$o
ld
Value
;
}
}
}
else
{
...
...
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