[horde] Problem in Rdo/RelationshipTest testing clotho example in MySQL

Chuck Hagenbuch chuck at horde.org
Wed Sep 2 04:49:11 UTC 2009


Quoting Elier Delgado <elier.delgado at gmail.com>:

> Hi Chuck,
>
> I was testing the Clotho example, all seem ok, just I see this problem:
>
> In RelationshipTest, if we have more than one availabilty for one resource,
>
> INSERT INTO `clotho_resource_availability` VALUES ('1', '1',  
> '1121404095', '2');
> INSERT INTO `clotho_resource_availability` VALUES ('2', '1',  
> '1121404096', '3');
>
> The count in the asociated mapper do not work fine in this case:
>
> // one-to-many
> echo "Resource ({$r->resource_id}) {$r->resource_name} has " .
> count($r->availabilities) . " availabilities:";
>
> count($r->availabilities) = 1, when must be 2

Looks like Jan's changes have already fixed this.

-chuck


More information about the horde mailing list