mythinking / doophp

Automatically exported from code.google.com/p/doophp
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

m:n limit relate #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. m:n relation
2. call relate($model,$rmodel,array( limit=>"1,1") ) 

What is the expected output? What do you see instead?
I expect the second entry of the table correspondent to $model but instead the 
first entry shows up!

What version of the product are you using? On what operating system?
Path: doophp-read-only/dooframework/db/DooSqlMagic.php
Name: DooSqlMagic.php
URL: http://doophp.googlecode.com/svn/trunk/dooframework/db/DooSqlMagic.php
Repository Root: http://doophp.googlecode.com/svn
Repository UUID: eaaf3d48-7251-11de-8585-3f51e31374b7
Revision: 741
Node Kind: file
Schedule: normal
Last Changed Author: vizitine
Last Changed Rev: 741
Last Changed Date: May 22, 2013
Text Last Updated: May 22, 2013

Please provide any additional information below.
If the relate is called with no n:m relation than the limit works probably !

Original issue reported on code.google.com by maubecks...@googlemail.com on 13 Nov 2013 at 11:43