Doctrine 2.0实体与关系 - 删除记录

When I delete record from Entity with relations (@onetoone or @onetomany)
All relations records will deleted too

    $em = $this->getEm();
    $post = $em->find('Blog\\WebBundle\\Entity\\Posts', $pid);
    // not found
    if (!$post) {
        throw ExceptionController::notFound('The post does not exist.');
    }
    $em->remove($post);
    $em->flush();

    return $this->redirectGenerate('_posts');

For example this code, remove user, that create post too, because between posts and users there is a relations
How to avoid this?