Doctrineを使う時に參考にしたページのメモ
Doctrineを使う時に調べたページのメモ。
使い方
- 公式チュートリアル Getting Started with Doctrine — Doctrine 2 ORM 2 documentation
2. Installation and Configuration — Doctrine 2 ORM 2 documentation
最近PHPのマイクロフレームワークであるsilexを使っていて、そろそろORMも使っていきたいので、symfonyでもおなじみのDoctrine ORMのチュートリアルを英語の勉強も兼ねて和訳・実行していくことにしました。
テーブルの作り方 10分ぐらいで学べるSymfony2 〜Doctrineテーブル作成編〜 - taka512’s blog
ENUM使いたい時 fre5h/DoctrineEnumBundle: Provides support of ENUM type for Doctrine in Symfony applications.
Slim×Doctrine
Provides support of ENUM type for Doctrine in Symfony applications.Slim 3 with Doctrine 2 I have recently started looking at using a PHP microframework to build a simple REST API for an app I’m working on. I was looking for something well supported/documented which would be easy to integrate with Doctrine 2. I’d heard good things about Slim 2 so thought I would check out the new version and maybe write a bit about it.
型の設定とか
その他色々
BEAR.SundayでDoctrine2のORMを使ってみた(改) — A Day in Serenity (Reloaded) — PHP, FuelPHP, Linux or something
Symfony2 でブログを作ろう — symblog - A Symfony2 Tutorial Part3,4あたりでDoctrineについて触れられてる。実際の使用例が載ってる記事はなかなかないので參考になる。
Doctrine2でツリー構造を扱う方法 | QUARTETCOM TECH BLOG
Doctrine2を使ってアプリケーションを開発していると、単なる一対多ではない階層構造(ツリー構造)を表すエンティティ(カテゴリや擬似フォルダなど)を使いたいケースが出てくることがあります。 そんな場合に便利なライブラリの一つ、 KnpDoctrineBehaviors の Tree を紹介します。(他にも同様の機能を別の実装で実現しているライブラリがいくつかあります)
[パート4] - コメントモデル: コメントの追加、 Doctrine リポジトリとマイグレーション — symblog - A Symfony2 Tutorial
そーだいなるらくがき帳: Symfony2でDoctrine2使う時によく使うEntityのアノテーション一覧とDoctrine2のコマンド一覧
Doctrine 2.3.6 with Slim Framework : where to create doctrine_cli.php - Stack Overflow
2. Installation and Configuration — Doctrine 2 ORM 2 documentation
初心者による初心者のためのdoctrine | tech.kayac.com - KAYAC engineers' blog
4.1. ドメイン層の実装 — TERASOLUNA Global Framework Development Guideline 1.0.0.publicreview documentation
參考になりそうなGitHub Repository
matthewfedak/slim-3-doctrine-2: Example of Slim 3 and Doctrine 2 to accompany a blog post.
maxkirchoff/Slim-Doctrine2: Slime PHP framework with Doctrine2 ORM
hak2c/slim-doctrine-mvc: Demo MVC with Slim Framework and Doctrine ORM
xsanisty/SlimStarter: Starter Application built on Slim Framework in MVC (and HMVC) environment
- revuls/SlimMVC: MVC Schema for Slim Framework applications