Jeremy
It works with a little modification!!!! :) great!!!
The modification is to change "ChildPort" to "ParentPort" in the
following code:
[code]
var $paginate = array(
'fields' => array('*'),
'recursive' => 2,
'limit' => 50,
'order' => array('Port.hardware_unit_id' => 'asc'),
'contain' => array(
'ChildPort' =>
array('HardwareUnit'),'HardwareUnit','Vlan','PortEmploymentGroup')
);
[/code]
If you can see from the debug-output, the strange "0 array" isn't
there anymore and everything is right. :)
[debug output]
Array
(
[Port] => Array
(
[id] => 3
[hardware_unit_id] => 3
[vlan_id] => 2
[port_employment_group_id] => 3
[uplink_id] => 1
[active] => 0
[port_name] => 28
[port_index] => 0x26
[status] => 1
[duplex] => 10
[speed] => 100
[last_update] => 2009-03-12 11:30:21
[full_name] => 3 (28)
)
[HardwareUnit] => Array
(
[id] => 3
[staff_id] => 3
[room_id] => 3
[hardware_group_id] => 9
[hardware_type_id] => 2
[schenker_number] => 522
[active] => 1
[receptacle_port] =>
[serial_number] => 4gsd153-dg1253-6g351
[ip] =>
[user_login] =>
[purchase_date] => 2010-03-24
[support_end] =>
[leasing_end] =>
[additional_info] => das ist der zusatztext monitor
)
[Vlan] => Array
(
[id] => 2
[vlan_number] => 2
[description] => VLAN 43-FG
)
[PortEmploymentGroup] => Array
(
[id] => 3
[description] => PC
)
[ParentPort] => Array
(
[id] => 1
[hardware_unit_id] => 1
[vlan_id] => 1
[port_employment_group_id] => 3
[uplink_id] =>
[active] => 1
[port_name] => 24
[port_index] => 0x22
[status] => 1
[duplex] => 10
[speed] => 100
[last_update] => 2009-03-12 11:30:21
[HardwareUnit] => Array
(
[id] => 1
[staff_id] => 1
[room_id] => 1
[hardware_group_id] => 3
[hardware_type_id] => 4
[schenker_number] => 1000
[active] => 0
[receptacle_port] => 8a01
[serial_number] => 4153-1253-6351
[ip] => 192.168.178.55
[user_login] => admin
[purchase_date] => 2010-03-24
[support_end] => 2011-10-28
[leasing_end] =>
[additional_info] => das ist der zusatztext
)
)
)
[/debug output]
---------------------------------------------------------------------------------------
CRICKET and JEREMY -> thanks so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
thanks! thanks! thanks! :-)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
To unsubscribe from this group, send email to
cake-php+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.