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
59fff29c
Commit
59fff29c
authored
Aug 28, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Some hydration simplifications and cleanups.
parent
4f644901
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
90 deletions
+73
-90
COPYRIGHT
COPYRIGHT
+0
-9
DoctrineException.php
lib/Doctrine/Common/DoctrineException.php
+2
-2
Events.php
lib/Doctrine/ORM/Events.php
+4
-0
AbstractHydrator.php
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
+4
-1
ArrayHydrator.php
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php
+0
-6
HydrationException.php
lib/Doctrine/ORM/Internal/Hydration/HydrationException.php
+6
-0
ObjectHydrator.php
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
+57
-72
No files found.
COPYRIGHT
View file @
59fff29c
...
...
@@ -19,15 +19,6 @@ Url: http://www.symfony-project.org
Copyright: Fabien Potencier
License: MIT - see LICENSE file
Spyc
----
Doctrine contains a port of the Spyc software
Url: http://spyc.sourceforge.net/
Copyright: 2005-2006 Chris Wanstrath
License: MIT - http://www.opensource.org/licenses/mit-license.php
Zend Framework
--------------
...
...
lib/Doctrine/Common/DoctrineException.php
View file @
59fff29c
...
...
@@ -66,9 +66,9 @@ class DoctrineException extends \Exception
if
(
$method
&&
$class
)
{
return
new
self
(
"The method '
$method
' is not implemented in class '
$class
'."
);
}
else
if
(
$method
&&
!
$class
)
{
return
new
self
(
$method
);
return
new
self
(
$method
);
}
else
{
return
new
self
(
'Functionality is not implemented.'
);
return
new
self
(
'Functionality is not implemented.'
);
}
}
...
...
lib/Doctrine/ORM/Events.php
View file @
59fff29c
...
...
@@ -92,6 +92,10 @@ final class Events
* into the current EntityManager from the database or after the refresh operation
* has been applied to it.
*
* Note that the postLoad event occurs for an entity before any associations have been
* initialized. Therefore it is not safe to access associations in a postLoad callback
* or event handler.
*
* This is an entity lifecycle event.
*
* @var string
...
...
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
View file @
59fff29c
...
...
@@ -162,7 +162,10 @@ abstract class AbstractHydrator
/**
* Gets the row container used during row-by-row hydration through {@link iterate()}.
*/
abstract
protected
function
_getRowContainer
();
protected
function
_getRowContainer
()
{
return
array
();
}
/**
* Processes a row of the result set.
...
...
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php
View file @
59fff29c
...
...
@@ -228,10 +228,4 @@ class ArrayHydrator extends AbstractHydrator
}
return
$this
->
_ce
[
$className
];
}
/** {@inheritdoc} */
protected
function
_getRowContainer
()
{
return
array
();
}
}
\ No newline at end of file
lib/Doctrine/ORM/Internal/Hydration/HydrationException.php
View file @
59fff29c
...
...
@@ -8,4 +8,10 @@ class HydrationException extends \Doctrine\Common\DoctrineException
{
return
new
self
(
"The result returned by the query was not unique."
);
}
public
static
function
parentObjectOfRelationNotFound
(
$alias
,
$parentAlias
)
{
return
new
self
(
"The parent object of entity result with alias '
$alias
' was not found."
.
" The parent alias is '
$parentAlias
'."
);
}
}
\ No newline at end of file
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php
View file @
59fff29c
This diff is collapsed.
Click to expand it.
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