<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>youhey</author_name>
  <author_url>https://blog.hatena.ne.jp/youhey/</author_url>
  <blog_title>仙台の山奥で自転車に乗ったり転んだり</blog_title>
  <blog_url>https://youhey.hateblo.jp/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>検索条件が複雑になったときに、デバッグのために生成されるSQLを確認したかっった。ので、処理を覗いて追ってみたら意外と単純ですぐに確認できた。 モデルの中だったら、こんな↓感じでWHERE句のSQLを生成できる。 $this-&gt;getDataSource()-&gt;conditions($conditions, true, true, $this) だいたいは、 DboSource#renderStatement($type, $data) と DboSource#buildStatement($query, $model) で、SQL生成のロジックが確認できる。あとは、↓のようなメソッドも Db…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyouhey.hateblo.jp%2Fentry%2F20111227%2F1324974570&quot; title=&quot;生成されるSQLを確認 - 仙台の山奥で自転車に乗ったり転んだり&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>2011-12-27 17:29:30</published>
  <title>生成されるSQLを確認</title>
  <type>rich</type>
  <url>https://youhey.hateblo.jp/entry/20111227/1324974570</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
