[eluser]pesho_h_k[/eluser]
I'm using Datamapper 1.6 ... but the get() method only returns me the last variant from the real results array ...
I dumped all the time, even inside the get method of the datamapper library ... but its only getting worse ...
so :
Code:
$news = new bgnews;
$news->get_where( array( 'active' => 'Y' ) );
and now - dump $news->all ...
and in the foreach cycle:
Code:
foreach( $news->all as $n ) {
die var_dump( $n ) );
}
or
Code:
foreach( $news->all as $n ) {
die var_dump( $n->stored ) );
}
...
but always returns the last one ...
can u help me please