<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shimooka</author_name>
  <author_url>https://blog.hatena.ne.jp/shimooka/</author_url>
  <blog_title>Do You PHP はてブロ</blog_title>
  <blog_url>https://shimooka.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>Symfony2</anon>
  </categories>
  <description>前のエントリの続き。 カスタムFormTypeのコンストラクタ引数にDoctrine\ORM\EntityManagerオブジェクトを渡せばOK。 以下、都道府県を選択するカスタムFormTypeを作る場合の例。 手順1：Symfony\Component\Form\AbstractTypeのサブクラスを作成する 引数がDoctrine\Common\Persistence\ObjectManagerインターフェースとなっているが、EntityManagerクラスはObjectManagerインターフェースを実装している。 MPrefは都道府県一覧を格納したテーブル(m_pref)に対するEn…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshimooka.hateblo.jp%2Fentry%2F20120322%2F1332391845&quot; title=&quot;データベースからデータを取得するカスタムFormTypeをサービスに登録して使う - Do You PHP はてブロ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-22 13:50:45</published>
  <title>データベースからデータを取得するカスタムFormTypeをサービスに登録して使う</title>
  <type>rich</type>
  <url>https://shimooka.hateblo.jp/entry/20120322/1332391845</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
