#5940: [PATCH]Model test testHabtmSavingWithNoPrimaryKeyUuidJoinTable broken
---------------------------------------------+------------------------------
Reporter: dardosordi | Type: Bug
Status: new | Priority: Medium
Milestone: 1.3.x.x | Component: Model
Version: 1.2 Final | Severity: Normal
Keywords: model,habtm,uuid,broken test | Php_version: PHP 5
Cake_version: 1.2.0.7962 |
---------------------------------------------+------------------------------
The test from r7953 is not passing:
{{{
Query: INSERT INTO `fruits_uuid_tags`
(`fruit_id`,`uuid_tag_id`,`fruit_id`)
VALUES ('495833a1-c274-476d-9d1f-56277f000101','481fc6d0-b920-43e0-e50f-
6d1740cf8569','495833a1-83c0-4026-91f3-56277f000101')
# Error
Unexpected PHP error [<span style = "color:Red;text-align:left"><b>SQL
Error:</b> 1110: Column
'fruit_id' specified twice</span>] severity [E_USER_WARNING] in
[cake/libs/model/datasources/dbo_source.php
line 514]
cake/tests/cases/libs/model/model.test.php -> ModelTest ->
testHabtmSavingWithNoPrimaryKeyUuidJoinTable
}}}
I've attached a possible fix, it makes all test pass but other untested
things colud have been broken...
--
Ticket URL: <https://trac.cakephp.org/ticket/5940>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" 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.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---