Ticket Details

Using mock models that inherit from app model should not cause schema calls on app model, ie causeing datasource connection

ENHANCEMENT Ticket (closed)

###What happened:
In lithium_bin the unit test that use MockPaste that extends Paste will cause CouchDB calls due to Paste::_schema();

###What was expected:
No CouchDB activity.

on 11.20.09 reported by: alkemann owned by: nate

Updates

on 11.20.09 by nate
  • owner was changed to nate
  • status was changed to in progress
`Model::__init()` needs to be refactored such that `hasField()` (which triggers premature calls to `schema()`) is not called until needed by `meta()`.
(fixed) on 04.21.10 by nate
  • status was changed to closed
  • resolution was changed to fixed
This has been fixed.