doctrine

    3熱度

    7回答

    我在這個問題上運行嘗試運行以下時,如下所示: $store = new Store(); $store->url =$this->form_validation->set_value('website'); $store->save(); $store_id = $store->identifier(); Fatal error: Uncaught exception 'Doctrin

    2熱度

    2回答

    在我的模式中,用戶與他們的問題有關。 我想顯示用戶提出的所有問題。 我也希望這個頁面使用sfDoctrinePager進行分頁,這需要Doctrine_Query作爲參數。 我知道我可以打電話$my_user->getQuestions()從my_user得到所有問題,但有沒有辦法讓查詢得到所有這些問題?例如,像$my_user->getQuestionsQuery()那樣。 還是我必須自己實現它

    0熱度

    4回答

    我想從數據庫中獲取中間行。 像最後10行,我將使用限制: return Doctrine_Query::create() ->select('v.*') ->from('Video v') ->where("v.community_id='$community_id' AND v.user_id='$user_id' AND v.publis

    3熱度

    3回答

    假設有兩個表。 Table X-- Columns: id x_value Table Y-- Columns: id x_id y_value 現在我不想定義教義班的關係,我想檢索使用這兩個表使用這樣的查詢的一些記錄: Select x_value from x, y where y.id="variable_z" and x.id=y.x_id; 我

    1熱度

    1回答

    我一直對Symfony有這樣的問題: 假設你有一個產品,並且你想添加一些照片。 我想這樣就沒有問題: Product: columns: name: { type: string(255), notnull: true, unique: true } Photo: columns: product_id: { type: integer, notnull

    0熱度

    1回答

    我有我的sfDoctrineGuardPlugin一個問題...這個問題是有關... Two tables relation with sfDoctrineGuard user table (symfony) 我創建實體企業與客戶和准以及他們的組和實體。現在,我創建一個名爲sfGuard蒙山signinSucces.php模塊,因爲我想習俗,並且代碼: public function execut

    2熱度

    1回答

    我想計算什麼日期20年從當前時間在php.How可以做到這一點。我不能以適當的方式來解決這個問題。方案是: 我有一個列在白色的dob。現在我想檢索所有年齡在20歲以上且小於25歲的用戶。 我使用學說的ORM 編輯 其工作正常,但發出警告: 警告:日期()[function.date]:這是不是安全的依靠系統的時區設置。您需要需要才能使用date.timezone設置或date_default_ti

    0熱度

    1回答

    我想安裝此ORM庫, 但我看到它需要PEAR安裝程序和PEAR包,他們在哪裏使用?

    0熱度

    2回答

    Select * from tableName order by id desc limit 10 如何通過演示執行類似上面的教條的東西?

    4熱度

    1回答

    WHERE column = value ->add(column, value); WHERE column <> value ->add(column, value, Criteria::NOT_EQUAL); Other Comparison Operators > , < Criteria::GREATER_THAN, Criteria::LESS_THAN >=, <= Crit