Persistence · प्रश्न 3 / 12
एक Extbase model में property $conferenceDate है। Custom mapping configuration के बिना यह किस database column से map होती है?
1 उत्तर सही है। आसान
उत्तर दिखाएँ
उत्तर
- C conference_date
व्याख्या
Extbase camelCase property names को अपने आप snake_case column names में बदलता है: $conferenceDate conference_date बनता है, $mainSpeaker main_speaker बनता है। हालाँकि Fluid template में आप property name ही उपयोग करते रहते हैं, यानी {conference.conferenceDate}। यदि table या column names convention से अलग हैं, उदाहरण के लिए किसी third-party table में, तो आप Configuration/Extbase/Persistence/Classes.php में mapping override करते हैं। camelCase में column conferenceDate इस configuration के बिना नहीं मिलेगा।