/** * Convert the given producer DAO to an array and prepend metadata. * * @param Tracker_ProducerDao $producerDao producer DAO * @return array associative array representation of the producer DAO with metadata prepended */ protected function _toArray($producerDao) { $producerArray = array('_id' => $producerDao->getKey(), '_type' => 'Tracker_Producer'); return array_merge($producerArray, $producerDao->toArray()); }