I have been trying to play with the Validation class using the console in Oil, but it seems that it's not possible: a validation object can be instantiated, but it looks like trying to add a field or a validation rules crashes the console. To see what happens, please try this:
> oil console
Fuel 1.0.1 - PHP 5.3.6 (cli) (Jun 16 2011 22:23:58) [Darwin]
>>> $val = Validation::factory()
>>> $val->add_field('username', 'Your username', 'required')
PHP Fatal error: Nesting level too deep - recursive dependency? in /Users/[...]/fuel/packages/oil/classes/console.php on line 111
Error - Nesting level too deep - recursive dependency? in PKGPATH/oil/classes/console.php on line 111
Am I doing something obviously wrong, or is this a bug?