サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
www.nextren-development.com
戻る symfony&Propelの威力 下記サイトで紹介されている内容と似たような内容なので併用してお役に立てれば幸いです。 symfonyで開発日記 schema_ymlがどこまで楽させてくれるか symfonyではデータベースの構造を/symfuldaze/config/schema.yml と言うファイルに記述し、プロジェクトとデータベースの連携を強化させます。 (ちなみに「symfuldaze」の部分は言うまでもなくプロジェクト名です) これはsymfonyがO/RマッパーとしてPropelを採用しているからで、 Propelはこのスキーマファイルの情報を元にプロジェクトとデータベースの関係を保持します。 スキーマファイルはYAML形式とXML形式両方をサポートしていて、 以前はXML形式が標準でしたが、最近になってYAML形式標準に変更されたようです。 YAMLは
symfonyでsymfuldazePHPの驚異的なフレームワーク、symfonyに関係する情報を紹介しています。 コーディング例やsymfonyが発行したSQL等も掲載しています。 デザインは一切ありません。デザイナ募集中(笑)。 あくまでも参考程度にしていただき、少しでもお役に立てれば幸いにです。 ネタ提供元:NEX-TREN.LLC symfonyをはじめるにあたって~注意点等 チュートリアル symfony&Propelの威力 Criteriaの使用例 save~データ追加&更新 ------------------------------------------ doSelectJoinAll~外部結合されたデータを取得(1結合先まで) ------------------------------------------ addJoin~テーブルを結合し、結合
/symfuldaze/apps/index/modules/criteria/actions/actions.class.php 追加 public function executeAddOr() { $c = new Criteria(); $c1 = $c->getNewCriterion(ItemPeer::CODE, 'F-F-%', Criteria::LIKE); $c2 = $c->getNewCriterion(ItemPeer::PRICE, 1000, Criteria::LESS_THAN); $c1->addOr($c2); $c->add($c1); //下記のような方法では上手くいかないので注意が必要です //$c->add(ItemPeer::CODE, 'F-F-%', Criteria::LIKE); //$c1 = $c->ge
このページを最初にブックマークしてみませんか?
『www.nextren-development.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く