<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Isoparametric</author_name>
  <author_url>https://blog.hatena.ne.jp/Isoparametric/</author_url>
  <blog_title>神様なんて信じない僕らのために</blog_title>
  <blog_url>https://isoparametric.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>CakePHP 1.3からはVirtualFieldという機能がはいって、 モデルの実フィールドではないものを実フィールドであるかのように扱えるようになってる。 例えば、ユーザー単位での投稿数をCOUNT(Entry.id)でとりたい場合、今まではModelクラスのFieldであるかのように扱えなかったが、 扱えるようになった。詳しくは、 CakePHP1.3移行ガイド - 新機能 &gt; virtual fieldsで、クラスにvar宣言してしまうと、JOINしたものをバーチャルフィールド化している場合、 JOINしてないSQLを発行したときにもバーチャルフィールドを使おうとするのでSQLエラー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fisoparametric.hatenablog.com%2Fentry%2F20100429%2F1272511886&quot; title=&quot;CakePHP1.3 バーチャルフィールドの動的指定 - 神様なんて信じない僕らのために&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>2010-04-29 12:31:26</published>
  <title>CakePHP1.3 バーチャルフィールドの動的指定</title>
  <type>rich</type>
  <url>https://isoparametric.hatenablog.com/entry/20100429/1272511886</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
