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
be1d5f16
Commit
be1d5f16
authored
Apr 15, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possibility to override Doctrine_Record::delete()
parent
f0d74ea1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
Parser.class.php
classes/DQL/Parser.class.php
+1
-1
Record.class.php
classes/Record.class.php
+1
-1
DQLParserTestCase.class.php
tests/DQLParserTestCase.class.php
+1
-0
No files found.
classes/DQL/Parser.class.php
View file @
be1d5f16
...
@@ -600,7 +600,7 @@ class Doctrine_DQL_Parser {
...
@@ -600,7 +600,7 @@ class Doctrine_DQL_Parser {
foreach
(
$parts
as
$part
)
{
foreach
(
$parts
as
$part
)
{
$ret
[]
=
$this
->
parseWhere
(
$part
);
$ret
[]
=
$this
->
parseWhere
(
$part
);
}
}
$r
=
implode
(
"
||
"
,
$ret
);
$r
=
implode
(
"
OR
"
,
$ret
);
}
else
{
}
else
{
return
$this
->
loadWhere
(
$parts
[
0
]);
return
$this
->
loadWhere
(
$parts
[
0
]);
}
}
...
...
classes/Record.class.php
View file @
be1d5f16
...
@@ -725,7 +725,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
...
@@ -725,7 +725,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
*
*
* @return boolean true on success, false on failure
* @return boolean true on success, false on failure
*/
*/
final
public
function
delete
()
{
public
function
delete
()
{
$this
->
table
->
getSession
()
->
delete
(
$this
);
$this
->
table
->
getSession
()
->
delete
(
$this
);
}
}
/**
/**
...
...
tests/DQLParserTestCase.class.php
View file @
be1d5f16
...
@@ -88,6 +88,7 @@ class Doctrine_DQL_ParserTestCase extends Doctrine_UnitTestCase {
...
@@ -88,6 +88,7 @@ class Doctrine_DQL_ParserTestCase extends Doctrine_UnitTestCase {
// DYNAMIC FETCHMODES
// DYNAMIC FETCHMODES
$e
=
false
;
try
{
try
{
$users
=
$graph
->
query
(
"FROM User-unknown"
);
$users
=
$graph
->
query
(
"FROM User-unknown"
);
}
catch
(
Exception
$e
)
{
}
catch
(
Exception
$e
)
{
...
...
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