<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>CakePHP-&gt;Version = '2.2.3'; 利用者(弊社)、顧客、仕入先が各々弊社システムにログインできるようにしたいです、と言われた。以下のようなモデルになっている。 User(利用者) Customer(顧客) Maker(仕入先) Userテーブルに顧客や仕入先をコピーしてぶち込むという荒技をやってロールをつけるみたいなことをやると、顧客や仕入先の情報が変わるたびに変更しなければならないのが鬱。 AuthComponentで管理されるユーザーオブジェクトの中身はモデルとは関係ないのだから、ログイン経路は一カ所にしてログイン時にAuthComponentのUserModelを切…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2013%2F02%2F07%2F140332&quot; title=&quot;AuthComponentのUserModelを使い分けしたい - Life is Really Short, Have Your Life!!&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>2013-02-07 14:03:32</published>
  <title>AuthComponentのUserModelを使い分けしたい</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2013/02/07/140332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
