Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-03-2008, 05:49 AM
Member
 
Join Date: Feb 2008
Posts: 46
Default

ok. thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 03-03-2008, 09:03 PM
mgordon's Avatar
Junior Member
 
Join Date: Sep 2007
Location: Stockholm, Sweden
Posts: 16
Send a message via Skype™ to mgordon
Default

Quote:
Originally Posted by xentek View Post
@mgordon

Well, if you need to move from find to fetchAll, the amount of refactoring would be kind of low, since you would already have to modify it a bit to do the join anyway.
@xentek

I still don't get the downside of including the table name, don't all the databases accept that kind of very basic queries?

I do have a problem with switching to fetchAll since you then can argue: why have a find() at all? I think this small change would allow a higher flexibility; the manual mentions joins but not much of all the functions that are affected by this change. Both the find() and the _getWhereQuery() in the table row are affected by it (probably even more)...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 03-04-2008, 04:19 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 111
Default

Find is intended for one line queries that look up off primary key id. fetchAll has the flexiblity to handle more complex queries.

If you need something more than:

SELECT * FROM table WHERE id = 0

Then you've shot past find's intended use. That's all I'm arguing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:09 AM.