मेरे schema.ymlसिद्धांत संबंध स्ट्रिंग
Organisation:
columns:
id: { type: integer(4), notnull: true, unique: true, primary: true, autoincrement: true }
name: { type: string(100), notnull: true, unique: true }
parent_organisation_id: { type: integer(4), notnull: false }
relations:
ParentOrganisation: { class: Organisation, local: parent_organisation_id, foreignAlias: ChildOrganisations }
रिटर्न कुछ संगठनों पूर्णांक मान 0 संग्रहीत है और ऐसी कोई organisation_id है। मेरे आश्चर्य करने के लिए जब मैं इस कोड को चलाने
class organisationActions extends autoOrganisationActions{
public function executeEdit(sfWebRequest $request){
$this->organisation = $this->getRoute()->getObject();
$p = $this->organisation->getParentOrganisationId();
var_dump($p);
परिणाम स्ट्रिंग है (1) "0"
क्यों इस एक पूर्णांक वापस नहीं करता है, तो मैं === तुलना कर सकते हैं 0
हाय @jdog, आप किस पर्यावरण और ढेर का उपयोग करते हैं? PHP संस्करण, एसएफ संस्करण (1.4 मुझे लगता है ...), प्रोपेल या सिद्धांत? mysql या postgres? तो मैं आपकी समस्या को दोहरा सकता हूं .... – Matteo
हाय @jdog, मेरे उत्तर के बारे में क्या? – Matteo
हाय @jdog कोई खबर? – Matteo