<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aipacommander</author_name>
  <author_url>https://blog.hatena.ne.jp/aipacommander/</author_url>
  <blog_title>ITの隊長のブログ</blog_title>
  <blog_url>https://www.aipacommander.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
    <anon>PHP</anon>
  </categories>
  <description>たとえばこんな$this-&gt;find()を記述したとする。 &lt;?php $this-&gt;find('all', array( 'fields' =&gt; array( 'name', 'count(name) as idCount' ), 'group' =&gt; array( 'name' ) )); とあるModelでnameをグルーピングしてそれぞれ合計を数えるSQLを発行してくれる。 んで、結果はこれだ。 Array ( [0] =&gt; Array ( [Model] =&gt; Array ( [name] =&gt; 名前 ) [0] =&gt; Array ( [idCount] =&gt; 8 ) ) ) キモい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aipacommander.com%2Fentry%2F2015%2F10%2F03%2F143211&quot; title=&quot;【CakePHP】$this-&amp;gt;find(&amp;#39;all&amp;#39;, array(&amp;#39;fields&amp;#39; =&amp;gt; &amp;#39;count()&amp;#39;))で取得した値がキモいので直す - ITの隊長のブログ&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/98194825/1514241549987688</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-10-03 14:32:11</published>
  <title>【CakePHP】$this-&gt;find('all', array('fields' =&gt; 'count()'))で取得した値がキモいので直す</title>
  <type>rich</type>
  <url>https://www.aipacommander.com/entry/2015/10/03/143211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
