Implements chained model() and id() calls