[Solar-talk] Solar_Struct
Paul M Jones
pmjones at solarphp.com
Wed Jul 19 13:38:41 PDT 2006
On Jul 19, 2006, at 3:20 PM, Antti Holvikari wrote:
> I have alot of code where I first fetch something from another table
> and then add some data from another table to the result array. Like
> tags for a node ($result['tags'] = $result_from_another_source). Now
> because of the new Solar_Struct I can't do that. What is the right way
> to handle this situation? Do I need to call toArray() on my results
> everytime I really want a plain old do-whatever-you-want array, as
> this doesn't sound like a clean/simple solution?
You know, I had a perfectly good reason for making the keys set-once,
but for the life of me I don't remember what it was. Working on
making Solar_Struct able to add/remove keys right now. Sorry for the
trouble, this is what I get for not talking about changes in advance.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list