Esempio n. 1
0
 public function __construct(DatabaseObject_BlogPost $post)
 {
     parent::__construct();
     $this->post = $post;
     $this->image = new DatabaseObject_BlogPostImage($post->getDb());
     $this->image->post_id = $this->post->getId();
 }
Esempio n. 2
0
 public function __construct(DatabaseObject_BlogPost $post)
 {
     parent::__construct();
     $this->post = $post;
     $this->location = new DatabaseObject_BlogPostLocation($post->getDb());
     $this->location->post_id = $this->post->getId();
 }