No you can't, neither get_object_vars() nor casting to an array will work with Orm\Model instances.Raitis Stengrevics wrote on Wednesday 1st of June 2011:get_object_vars( object $object ). Random idea: You can try type-cast object to array. Ha, ha!
Jelmer Schreuder wrote on Thursday 2nd of June 2011:A couple of points:
1. There is no Input::select() method, you probably mean Form::select()?
2. Does this really belong here in the Orm forum? (it doesn't seem to, this seems to be about input for the Form class)
3. There's a method to_array() which you can call on each Orm\Model instance to get the associative array representation of that model.
No you can't, neither get_object_vars() nor casting to an array will work with Orm\Model instances.Raitis Stengrevics wrote on Wednesday 1st of June 2011:get_object_vars( object $object ). Random idea: You can try type-cast object to array. Ha, ha!
It looks like you're new here. If you want to get involved, click one of these buttons!