mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 18:30:17 +01:00
create an Entry with a User in parameter
This commit is contained in:
parent
5f09650eef
commit
7812f508bc
@ -19,8 +19,9 @@ class EntryController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function addEntryAction(Request $request)
|
public function addEntryAction(Request $request)
|
||||||
{
|
{
|
||||||
$entry = new Entry();
|
$repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:User');
|
||||||
$entry->setUserId(1);
|
$user = $repository->find(1);
|
||||||
|
$entry = new Entry($user);
|
||||||
|
|
||||||
$form = $this->createFormBuilder($entry)
|
$form = $this->createFormBuilder($entry)
|
||||||
->add('url', 'url')
|
->add('url', 'url')
|
||||||
|
Loading…
Reference in New Issue
Block a user