<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cakephper</author_name>
  <author_url>https://blog.hatena.ne.jp/cakephper/</author_url>
  <blog_title>cakephperの日記(CakePHP, Laravel, PHP)</blog_title>
  <blog_url>https://cakephper.hatenadiary.org/</blog_url>
  <categories>
    <anon>cakePHP</anon>
    <anon>cake3</anon>
  </categories>
  <description>CakePHP3を触り始めています。Cake3からfind()の結果がオブジェクトになりました。 Cake2までは配列だったのでpr関数で見ても問題なかったのですが、オブジェクトになるとprは辛くなります。CakePHP3からはdebug関数を使うと下記のようにリレーション先のデータも確認できるようになります。debug関数はcakephpが標準で用意しているグローバル関数です。CakePHP2にもあります。 debug( $this-&gt;Users-&gt;find()-&gt;contain(['Bookmarks'])-&gt;all() ); Users hasMany Bookmarksの状態でfind…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcakephper.hatenadiary.org%2Fentry%2F20141223%2F1419322264&quot; title=&quot; CakePHP3のfind結果はdebug関数で見ると良い - cakephperの日記(CakePHP, Laravel, 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>2014-12-23 17:11:04</published>
  <title> CakePHP3のfind結果はdebug関数で見ると良い</title>
  <type>rich</type>
  <url>https://cakephper.hatenadiary.org/entry/20141223/1419322264</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
