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
f3488d17
Commit
f3488d17
authored
Sep 21, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
2f7d4cbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
Record.php
lib/Doctrine/Record.php
+5
-8
Filter.php
lib/Doctrine/Record/Filter.php
+2
-2
Standard.php
lib/Doctrine/Record/Filter/Standard.php
+5
-5
No files found.
lib/Doctrine/Record.php
View file @
f3488d17
...
...
@@ -772,12 +772,6 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
return
$value
;
}
if
(
isset
(
$this
->
_id
[
$lower
]))
{
return
$this
->
_id
[
$lower
];
}
if
(
$name
===
$this
->
_table
->
getIdentifier
())
{
return
null
;
}
if
(
isset
(
$this
->
_values
[
$lower
]))
{
return
$this
->
_values
[
$lower
];
}
...
...
@@ -793,8 +787,11 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
return
$this
->
_references
[
$name
];
}
catch
(
Doctrine_Table_Exception
$e
)
{
throw
new
Doctrine_Record_Exception
(
"Unknown property / related component '
$name
'."
);
foreach
(
$this
->
_table
->
getFilters
()
as
$filter
)
{
if
((
$value
=
$filter
->
filterGet
(
$this
,
$name
,
$value
))
!==
null
)
{
return
$value
;
}
}
}
}
/**
...
...
lib/Doctrine/Record/Filter.php
View file @
f3488d17
...
...
@@ -39,12 +39,12 @@ abstract class Doctrine_Record_Filter
*
* @param mixed $name name of the property or related component
*/
abstract
public
function
filterSet
(
$key
,
$value
);
abstract
public
function
filterSet
(
Doctrine_Record
$record
,
$name
,
$value
);
/**
* filterGet
* defines an implementation for filtering the get() method of Doctrine_Record
*
* @param mixed $name name of the property or related component
*/
abstract
public
function
filterGet
(
$key
);
abstract
public
function
filterGet
(
Doctrine_Record
$record
,
$name
);
}
lib/Doctrine/Record/Filter/Standard.php
View file @
f3488d17
...
...
@@ -39,9 +39,9 @@ class Doctrine_Record_Filter_Standard extends Doctrine_Record_Filter
*
* @param mixed $name name of the property or related component
*/
public
function
filterSet
(
$key
,
$value
)
{
throw
new
Doctrine_Record_Exception
(
'Unknown record property / related component \''
.
$
key
.
'\'.'
);
public
function
filterSet
(
Doctrine_Record
$record
,
$name
,
$value
)
{
throw
new
Doctrine_Record_Exception
(
'Unknown record property / related component \''
.
$
name
.
'\'.'
);
}
/**
* filterGet
...
...
@@ -49,8 +49,8 @@ class Doctrine_Record_Filter_Standard extends Doctrine_Record_Filter
*
* @param mixed $name name of the property or related component
*/
public
function
filterGet
(
$key
)
public
function
filterGet
(
Doctrine_Record
$record
,
$name
)
{
throw
new
Doctrine_Record_Exception
(
'Unknown record property / related component \''
.
$
key
.
'\'.'
);
throw
new
Doctrine_Record_Exception
(
'Unknown record property / related component \''
.
$
name
.
'\'.'
);
}
}
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