Rails のブログ アプリケーションで、特定の投稿オブジェクトを指定すると、次のような方法で投稿の作成者の名前を取得できます。
post = Post.find(1)
author_name = post.author.name
次のような DataObject を使用した同等の PHP はありますか (ここでは架空の構文を作成しているだけです)。
$postsTable = DB_DataObject::factory('posts');
$authorName = (($postsTable->id = 1)->find(true))->author->name;
| finds and autofetches post #1 |->author->name