prepareEnvironment(); $factory->updateEnvironment(); /* Inserting a record */ $obj = $factory->create( [ 'dso.type'=>'foobar', 'random_data' => md5(rand()) ] ); $obj->insert(); /* Search by random data field, which is indexed due to the ExampleFactory class' $schema property. */ $search = $factory->search(); $search->where('${random_data} LIKE :q'); $result = $search->execute(['q'=>'ab%']); foreach($result as $r) { var_dump($r->get()); }