Possibility to override Doctrine_Record::delete()
This commit is contained in:
parent
f0d74ea111
commit
be1d5f168e
@ -600,7 +600,7 @@ class Doctrine_DQL_Parser {
|
||||
foreach($parts as $part) {
|
||||
$ret[] = $this->parseWhere($part);
|
||||
}
|
||||
$r = implode(" || ",$ret);
|
||||
$r = implode(" OR ",$ret);
|
||||
} else {
|
||||
return $this->loadWhere($parts[0]);
|
||||
}
|
||||
|
@ -725,7 +725,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
||||
*
|
||||
* @return boolean true on success, false on failure
|
||||
*/
|
||||
final public function delete() {
|
||||
public function delete() {
|
||||
$this->table->getSession()->delete($this);
|
||||
}
|
||||
/**
|
||||
|
@ -88,6 +88,7 @@ class Doctrine_DQL_ParserTestCase extends Doctrine_UnitTestCase {
|
||||
|
||||
|
||||
// DYNAMIC FETCHMODES
|
||||
$e = false;
|
||||
try {
|
||||
$users = $graph->query("FROM User-unknown");
|
||||
} catch(Exception $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user