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
752a26cb
Commit
752a26cb
authored
Jul 23, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
53cd5ed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Record.php
lib/Doctrine/Record.php
+8
-3
No files found.
lib/Doctrine/Record.php
View file @
752a26cb
...
@@ -425,6 +425,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
...
@@ -425,6 +425,7 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
}
}
unset
(
$tmp
[
$name
]);
unset
(
$tmp
[
$name
]);
}
}
return
$tmp
;
return
$tmp
;
}
}
/**
/**
...
@@ -734,10 +735,10 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
...
@@ -734,10 +735,10 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
*/
*/
public
function
get
(
$name
,
$load
=
true
)
public
function
get
(
$name
,
$load
=
true
)
{
{
$value
=
self
::
$_null
;
$value
=
self
::
$_null
;
$lower
=
strtolower
(
$name
);
$lower
=
strtolower
(
$name
);
$lower
=
$this
->
_table
->
getColumnName
(
$lower
);
$lower
=
$this
->
_table
->
getColumnName
(
$lower
);
if
(
isset
(
$this
->
_data
[
$lower
]))
{
if
(
isset
(
$this
->
_data
[
$lower
]))
{
// check if the property is null (= it is the Doctrine_Null object located in self::$_null)
// check if the property is null (= it is the Doctrine_Null object located in self::$_null)
...
@@ -1043,6 +1044,10 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
...
@@ -1043,6 +1044,10 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
if
(
$this
->
_data
[
$v
]
instanceof
Doctrine_Record
)
{
if
(
$this
->
_data
[
$v
]
instanceof
Doctrine_Record
)
{
$this
->
_data
[
$v
]
=
$this
->
_data
[
$v
]
->
getIncremented
();
$this
->
_data
[
$v
]
=
$this
->
_data
[
$v
]
->
getIncremented
();
}
}
if
(
$this
->
_data
[
$v
]
===
null
)
{
throw
new
Doctrine_Record_Exception
(
'Unexpected null value.'
);
}
$a
[
$v
]
=
$this
->
_data
[
$v
];
$a
[
$v
]
=
$this
->
_data
[
$v
];
}
}
...
...
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