Added support for method chaining as used in tests/dataModeling.php