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
1b8e9ea0
Commit
1b8e9ea0
authored
Aug 14, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed getState() method and changed all references to getState() to state()
parent
5a976de3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
14 deletions
+3
-14
Record.php
lib/Doctrine/Record.php
+0
-11
Unique.php
lib/Doctrine/Validator/Unique.php
+1
-1
HookTestCase.php
tests/Record/HookTestCase.php
+2
-2
No files found.
lib/Doctrine/Record.php
View file @
1b8e9ea0
...
@@ -578,17 +578,6 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
...
@@ -578,17 +578,6 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
$this
->
postUnserialize
(
$event
);
$this
->
postUnserialize
(
$event
);
}
}
/**
* getState
* returns the current state of the object
*
* @see Doctrine_Record::STATE_* constants
* @return integer
*/
public
function
getState
()
{
return
$this
->
_state
;
}
/**
/**
* state
* state
* returns / assigns the state of this record
* returns / assigns the state of this record
...
...
lib/Doctrine/Validator/Unique.php
View file @
1b8e9ea0
...
@@ -55,7 +55,7 @@ class Doctrine_Validator_Unique
...
@@ -55,7 +55,7 @@ class Doctrine_Validator_Unique
// If the record is not new we need to add primary key checks because its ok if the
// If the record is not new we need to add primary key checks because its ok if the
// unique value already exists in the database IF the record in the database is the same
// unique value already exists in the database IF the record in the database is the same
// as the one that is validated here.
// as the one that is validated here.
$state
=
$record
->
getS
tate
();
$state
=
$record
->
s
tate
();
if
(
!
(
$state
==
Doctrine_Record
::
STATE_TDIRTY
||
$state
==
Doctrine_Record
::
STATE_TCLEAN
))
{
if
(
!
(
$state
==
Doctrine_Record
::
STATE_TDIRTY
||
$state
==
Doctrine_Record
::
STATE_TCLEAN
))
{
foreach
(
$table
->
getPrimaryKeys
()
as
$pk
)
{
foreach
(
$table
->
getPrimaryKeys
()
as
$pk
)
{
$sql
.=
" AND
{
$pk
}
!= ?"
;
$sql
.=
" AND
{
$pk
}
!= ?"
;
...
...
tests/Record/HookTestCase.php
View file @
1b8e9ea0
...
@@ -90,11 +90,11 @@ class Doctrine_Record_Hook_TestCase extends Doctrine_UnitTestCase
...
@@ -90,11 +90,11 @@ class Doctrine_Record_Hook_TestCase extends Doctrine_UnitTestCase
$this
->
assertEqual
(
$r
->
something
,
'something'
);
$this
->
assertEqual
(
$r
->
something
,
'something'
);
$this
->
assertEqual
(
$r
->
deleted
,
null
);
$this
->
assertEqual
(
$r
->
deleted
,
null
);
$this
->
assertEqual
(
$r
->
getS
tate
(),
Doctrine_Record
::
STATE_CLEAN
);
$this
->
assertEqual
(
$r
->
s
tate
(),
Doctrine_Record
::
STATE_CLEAN
);
try
{
try
{
$r
->
delete
();
$r
->
delete
();
$this
->
assertEqual
(
$r
->
getS
tate
(),
Doctrine_Record
::
STATE_CLEAN
);
$this
->
assertEqual
(
$r
->
s
tate
(),
Doctrine_Record
::
STATE_CLEAN
);
$this
->
assertEqual
(
$r
->
deleted
,
true
);
$this
->
assertEqual
(
$r
->
deleted
,
true
);
}
catch
(
Doctrine_Exception
$e
){
}
catch
(
Doctrine_Exception
$e
){
$this
->
fail
();
$this
->
fail
();
...
...
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