chriskite/phactory — pull request #24 by drock (2012-08-28 03:33:46+00:00)
Title: Ability to set a mongo record value to something other than a string

The _evalSequence function of the Blueprint class forces all values of documents to be a string. This pull request adds a check to that so that if a value is not a string it won't be eval'd.

This is needed because as Phactory stands now, there is no way to create a document with a value being an array of scalars such as

$phactory->define('user',array('tags'=>array('one','two','three')));

In the above case an embedded document does not work as you end up with an array of nested arrays otherwise.