jmoiron / modl

golang database modelling library
MIT License
479 stars 48 forks source link

fixed table detection for []*T #16

Closed ulfurinn closed 10 years ago

ulfurinn commented 10 years ago

PostGet wasn't being run for records fetched into []*T using Select because the last pointer wasn't followed and no table mapping could be found.

TestHooks was a false positive for this case because the _update() call overwrote the value with the expected one, set by the previous call to PostGet.