#5710: HABTM - constraining unique ids, but removing non-unique
----------------------------+-----------------------------------------------
    Reporter:  Kumazatheef  |          Type:  Bug    
      Status:  new          |      Priority:  Medium 
   Milestone:  1.2.x.x      |     Component:  General
     Version:  RC3          |      Severity:  Normal 
    Keywords:               |   Php_version:  PHP 5  
Cake_version:               |  
----------------------------+-----------------------------------------------
 
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/datasources/dbo_source.php#L851

 Line 851+:
 Doing a check on unique ids, ensuring a unique return; however, this could
 potentially hide any duplicates that are there in error - thus
 unknowningly clutter up the database.
 The becomes more painful if there's a data in the joining table which
 makes them unique.
 For example, if I have a list of members that have a list types of
 webpages, they may have more than 1 of the same type of webpages (wherein
 the joining table would have an extra field containing the URL).

 A nice 'fix' would be to check the joining table to see if there's a
 unique id (auto increment) and check based on that.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5710>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to