Project

General

Profile

Bug #6815

function retrieves() of common\libraries\DataManager does not work properly

Added by jingzhou wang about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/11/2013
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal

History

#1

Updated by jingzhou wang about 7 years ago

hello,
I have been trying the LCMS4

I have created external instances of picasa, bbb and vimeo.

I tried to retrieve by the followig conditions :

object(common\libraries\AndCondition)#286 (1) {
["conditions":"common\libraries\MultipleAggregateCondition":private]=> array(1) {
[0]=> object(common\libraries\EqualityCondition)#285 (5) {
["name":"common\libraries\ComparisonCondition":private]=> string(7) "enabled"
["operator":"common\libraries\ComparisonCondition":private]=> int(5)
["value":"common\libraries\ComparisonCondition":private]=> int(1)
["storage_unit":"common\libraries\ComparisonCondition":private]=> NULL
["is_alias":"common\libraries\ComparisonCondition":private]=> bool(false)
}
}
}

I can fetch all the external instances created( as seen below).

object(common\libraries\DoctrineDataClassResultSet)#288 (3) {
["class_name":"common\libraries\DataClassResultSet":private]=> string(27) "repository\ExternalInstance"
["data":"common\libraries\ArrayResultSet":private]=> array(3) {
[0]=> object(repository\ExternalInstance)#292 (3) {
["properties":"common\libraries\DataClass":private]=> array(2) {
["default_properties"]=> array(7) {
["title"]=> string(28) "George Wang's picasa account"
["description"]=> string(48) "我的Picasa, 用于教学图片的存储"
["type"]=> string(67) "common\extensions\external_repository_manager\implementation\picasa"
["enabled"]=> string(1) "1"
["created"]=> string(10) "1383817396"
["modified"]=> string(10) "1383817396"
["id"]=> string(1) "2"
}
["optional_properties"]=> array(0) { }
}
["listeners":"common\libraries\DataClass":private]=> array(0) { }
["errors":"common\libraries\DataClass":private]=> NULL
}
[1]=> object(repository\ExternalInstance)#293 (3) {
["properties":"common\libraries\DataClass":private]=> array(2) {
["default_properties"]=> array(7) { ["title"]=> string(12) "网上教室"
["description"]=> string(70) "中小网络教室,容量15~20 人"
["type"]=> string(63) "common\extensions\video_conferencing_manager\implementation\bbb"
["enabled"]=> string(1) "1"
["created"]=> string(10) "1383993336"
["modified"]=> string(10) "1383993336"
["id"]=> string(1) "4"
}
["optional_properties"]=> array(0) { }
}
["listeners":"common\libraries\DataClass":private]=> array(0) { }
["errors":"common\libraries\DataClass":private]=> NULL
}
[2]=> object(repository\ExternalInstance)#263 (3) {
["properties":"common\libraries\DataClass":private]=> array(2) {
["default_properties"]=> array(7) {
["title"]=> string(16) "my vimeo account"
["description"]=> string(44) "my vimeo"
["type"]=> string(66) "common\extensions\external_repository_manager\implementation\vimeo"
["enabled"]=> string(1) "1"
["created"]=> string(10) "1384156923"
["modified"]=> string(10) "1384156923"
["id"]=> string(1) "5"
}
["optional_properties"]=> array(0) { }
}
["listeners":"common\libraries\DataClass":private]=> array(0) { }
["errors":"common\libraries\DataClass":private]=> NULL
}
}
["pointer":"common\libraries\ArrayResultSet":private]=> int(0)
}

whereas I callled retrieves by a condictions as following

object(common\libraries\AndCondition)#287 (1) {
["conditions":"common\libraries\MultipleAggregateCondition":private]=>
array(2) {
[0]=> object(common\libraries\EqualityCondition)#285 (5) {
["name":"common\libraries\ComparisonCondition":private]=> string(7) "enabled"
["operator":"common\libraries\ComparisonCondition":private]=> int(5)
["value":"common\libraries\ComparisonCondition":private]=> int(1)
["storage_unit":"common\libraries\ComparisonCondition":private]=> NULL
["is_alias":"common\libraries\ComparisonCondition":private]=> bool(false)
}
[1]=> object(common\libraries\InCondition)#286 (4) {
["name":"common\libraries\InCondition":private]=> string(4) "type"
["values":"common\libraries\InCondition":private]=> array(1) {
[0]=> string(64) "\common\extensions\video_conferencing_manager\implementation\bbb"
}
["storage_unit":"common\libraries\InCondition":private]=> NULL
["is_alias":"common\libraries\InCondition":private]=> bool(false)
}
}
}

I can fetch nothing:

object(common\libraries\DoctrineDataClassResultSet)#289 (3) {
["class_name":"common\libraries\DataClassResultSet":private]=> string(27) "repository\ExternalInstance"
["data":"common\libraries\ArrayResultSet":private]=> array(0) { }
["pointer":"common\libraries\ArrayResultSet":private]=> int(0)
}

cheers
jingzhou

Also available in: Atom PDF