#1530: REGRESSION: PHP notices
------------------------------+---------------------------------------------
Reporter: colnector | Owner: romanb
Type: defect | Status: new
Priority: critical | Milestone:
Component: Query/Hydration | Version: 1.0.2
Resolution: | Keywords:
Has_test: 0 | Mystatus: Pending User Response
Has_patch: 0 |
------------------------------+---------------------------------------------
Comment (by jwage):
I tried making a test case for this in 1.0 and I cannot get any notices or
anything to happen. Can you help me reproduce the problem?
{{{
class Doctrine_Ticket_1530_TestCase extends Doctrine_UnitTestCase
{
public function testTest()
{
$q = Doctrine_Query::create()
->from('User u')
->where('u.id IN (SELECT u2.id FROM User u2 WHERE u2.id = ?)',
1);
$this->assertEqual($q->getSql(), 'SELECT e.id AS e__id, e.name AS
e__name, e.loginname AS e__loginname, e.password AS e__password, e.type AS
e__type, e.created AS e__created, e.updated AS e__updated, e.email_id AS
e__email_id FROM entity e WHERE e.id IN (SELECT e2.id AS e2__id FROM
entity e2 WHERE e2.id = ? AND (e.type = 0)) AND (e.type = 0)');
}
}
}}}
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1530#comment:5>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---