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(); }
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(); }