<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>cakephp</anon>
    <anon>php</anon>
  </categories>
  <description>CakePHPのCookbookを読んでると、いろんなところで「SQL内にモデル名を含めましょう」みたいなことが書いてあります。 conditions: 関連モデルのレコードを限定するための SQL。SQL 内でモデル名を使用することを習慣にしておくようにしておきましょう:“approved = 1.” よりも、“Profile.approved = 1” の方が良い記述です。 「へぇそういうものなのか。まぁどっちでもいけるから気にしなくていいか。」 みたいな感じで思ってたんですが、ふとfindの拡張をしようとした時に、 「conditions部分にモデル名が含まれてるかどうか」 を判断したく…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F20110130%2F1296388340&quot; title=&quot;findするときのconditionsなどにモデル名を書く習慣を付ける - こんにちはこんにちはmonmonです！&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-01-30 20:52:20</published>
  <title>findするときのconditionsなどにモデル名を書く習慣を付ける</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/20110130/1296388340</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
