Skip to content

Commit 826bc90

Browse files
committed
Conflicts:
lib/Doctrine/Table.php
1 parent abb6e5c commit 826bc90

File tree

5 files changed

+61
-3
lines changed

5 files changed

+61
-3
lines changed

lib/Doctrine/Table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,10 +2735,10 @@ public function buildFindByWhere($fieldName)
27352735
$fieldsFound = $matches[1];
27362736
$operatorFound = array_map('strtoupper', $matches[2]);
27372737

2738-
// Check if $fieldName has unidentified parts left
2738+
// Check if $fieldName has unidentified parts left
27392739
if (strlen(implode('', $fieldsFound) . implode('', $operatorFound)) !== strlen($fieldName)) {
27402740
$expression = preg_replace('/(' . implode('|', $fields) . ')(Or|And)?/', '($1)$2', $fieldName);
2741-
throw new Doctrine_Table_Exception('Invalid expression found: ' . $expression);
2741+
throw new Doctrine_Table_Exception('Invalid expression found: ' . $expression);
27422742
}
27432743

27442744
// Build result
@@ -2763,7 +2763,7 @@ public function buildFindByWhere($fieldName)
27632763
}
27642764

27652765
$where .= ' ' . strtoupper($operatorFound[$index]) . ' ';
2766-
2766+
27672767
$lastOperator = $operatorFound[$index];
27682768
}
27692769

tests/DoctrineTest/doctrine_tests/245a059205f76f5a8987565e88413227

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

tests/DoctrineTest/doctrine_tests/c2362f023111b1a1b4aa7275dce0d3f8

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

tests/tmp/Ticket_1527_User.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
/**
4+
* Ticket_1527_User
5+
*
6+
* This class has been auto-generated by the Doctrine ORM Framework
7+
*
8+
* @package ##PACKAGE##
9+
* @subpackage ##SUBPACKAGE##
10+
* @author ##NAME## <##EMAIL##>
11+
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
12+
*/
13+
class Ticket_1527_User extends BaseTicket_1527_User
14+
{
15+
16+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
/**
4+
* BaseTicket_1527_User
5+
*
6+
* This class has been auto-generated by the Doctrine ORM Framework
7+
*
8+
* @property string $username
9+
* @property string $password
10+
*
11+
* @package ##PACKAGE##
12+
* @subpackage ##SUBPACKAGE##
13+
* @author ##NAME## <##EMAIL##>
14+
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
15+
*/
16+
abstract class BaseTicket_1527_User extends Doctrine_Record
17+
{
18+
public function setTableDefinition()
19+
{
20+
$this->setTableName('ticket_1527__user');
21+
$this->hasColumn('username', 'string', 255, array(
22+
'type' => 'string',
23+
'extra' =>
24+
array(
25+
'test' => 123,
26+
),
27+
'length' => '255',
28+
));
29+
$this->hasColumn('password', 'string', 255, array(
30+
'type' => 'string',
31+
'length' => '255',
32+
));
33+
}
34+
35+
public function setUp()
36+
{
37+
parent::setUp();
38+
39+
}
40+
}

0 commit comments

Comments
 (0)