{"id":11697,"date":"2022-09-28T07:20:53","date_gmt":"2022-09-28T01:50:53","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/"},"modified":"2022-09-28T07:20:53","modified_gmt":"2022-09-28T01:50:53","slug":"solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/","title":{"rendered":"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-56237425\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"56237425\" data-parentid=\"56208163\" data-score=\"0\" data-position-on-page=\"2\" data-highest-scored=\"0\" data-question-has-accepted-highest-score=\"0\" itemprop=\"suggestedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>It seems I did find a way, indeed it is pretty straightforward Synfony 4 code.<br \/>\nHope it could be useful to somebody.<\/p>\n<p>(note: I used <code>php bin\/console make:entity\/crud\/form<\/code> to write the needed scripts. Below how I needed to modify the code I got from <code>make<\/code>) <\/p>\n<p>So, say I have Alpha and Beta entities.<br \/>\nI wish to have a form to create a new Alpha object, to associate to it one or more Beta objects, and to fill in a Cost value for each Alpha-Beta association. I want a edit form too.<\/p>\n<p>First I create a new AlphaBeta entity, whose fields are:<\/p>\n<pre><code> \/**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\Alpha\", inversedBy=\"alphabetas\", cascade={\"persist\"})\n * @ORM\\JoinColumn(nullable=false)\n *\/\nprivate $alpha;\n\n\/**\n * @ORM\\ManyToOne(targetEntity=\"App\\Entity\\Beta\", inversedBy=\"betaalphas\", cascade={\"persist\"})\n * @ORM\\JoinColumn(nullable=false)\n *\/\nprivate $beta;\n\n \/**\n * @ORM\\Column(type=\"string\", length=255, nullable=true)\n *\/\nprivate $cost;\n<\/code><\/pre>\n<p>Within class <code>Alpha<\/code>, I need<\/p>\n<pre><code>    \/**\n * @ORM\\OneToMany(targetEntity=\"App\\Entity\\AlphaBeta\", mappedBy=\"alpha\", orphanRemoval=true, cascade={\"persist\"})\n *\/\nprivate $alphabetas;\n<\/code><\/pre>\n<p>with usual &#8216;<code>getAlphaBeta<\/code>, <code>addAlphaBeta<\/code> and <code>removeAlphaBeta<\/code> methods. (similarly for <code>Beta<\/code>)<\/p>\n<p>I create usual CRUD controllers for the new <code>AlphaBeta<\/code> entity. To have an AlphaBeta Form which could be used as a subform too, I define<\/p>\n<pre><code>class `AlphaBetaEmbeddedForm`  extends AbstractType {\n\n      public function buildForm(FormBuilderInterface $builder, array $options)\n    {\n    $builder -&gt;add('Beta', EntityType::class, array(\n                    'class' =&gt; Beta::class,\n                    'multiple' =&gt; false,\n                    'expanded' =&gt; true,\n                    'choice_label' =&gt; 'betaTitle' ))\n             -&gt;add('cost', TextType::class);\n   if(empty($options['remove_alpha_field'])) {\n   $builder-&gt;add('Alpha', EntityType::class, array(\n                   'class' =&gt; Alpha::class,\n                   'multiple' =&gt; false,\n                   'expanded' =&gt; true,\n                   'choice_label' =&gt; 'alphaTitle'\n    ));}}\n\npublic function configureOptions(OptionsResolver $resolver)\n{\n    $resolver-&gt;setDefaults([\n        'data_class' =&gt; AlphaBeta::class,\n        'remove_alpha_field' =&gt; false,\n    ]);\n}}\n<\/code><\/pre>\n<p><code>remove_alpha_field<\/code> is the trick that let me use the form above as a subform within a form to create an <code>Alpha<\/code> object:<\/p>\n<pre><code>class AlphaType extends AbstractType {\n\n     public function buildForm(FormBuilderInterface $builder, array $options) {\n\n     $builder\n        -&gt;add('alphaTitle')       \n        -&gt;add('AlphaBetas', CollectionType::class, array(\n           'entry_type'  =&gt; AlphaBetaEmbeddedForm ::class,\n           'entry_options' =&gt; ['label' =&gt; true, 'remove_alpha_field' =&gt; true],\n           'allow_add' =&gt; true,\n           'label' =&gt; 'Betas',\n           'by_reference' =&gt; false\n    ));}\n<\/code><\/pre>\n<p>To render the subforms within the main form, I need some JS, as suggested <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/symfony.com\/doc\/current\/reference\/forms\/types\/collection.html\">here<\/a>, to be inserted within the <code>new.html.twig<\/code> and <code>edit.html.twig<\/code> templates for <code>Alpha<\/code>:<\/p>\n<pre><code>{% block javascripts %} &lt;script type=\"text\/javascript\"&gt; \n     jQuery(document).ready(function () {\n        $(\"#add-another-collection-widget\").click(function(e){ \n          var list = jQuery(jQuery(this).attr('data-list-selector'));\n          var counter = list.data('widget-counter') | list.children().length;\n          var newWidget = list.attr('data-prototype');\n          newWidget  = newWidget.replace(\/__name__\/g, counter); \n          counter++;\n          list.data('widget-counter', counter);\n          var newElem = jQuery(list.attr('data-widget-tags')).html(newWidget);\n          newElem.appendTo(list);\n    });});&lt;\/script&gt;{% endblock %}\n<\/code><\/pre>\n<p>To apply the latter, it seems you need to write each single row in the main form template <code>_form.html.twig<\/code>:<\/p>\n<pre><code>{{ form_start(form) }}\n&lt;div class=\"my-custom-class-for-errors\"&gt;\n    {{ form_errors(form) }}\n&lt;\/div&gt;\n     &lt;div id=\"alphaTitle\"&gt;\n        {{ form_row(form.alphaTitle) }}\n    &lt;\/div&gt;\n\n{% if  form.AlphaBetas %} \n     &lt;b&gt;Betas&lt;\/b&gt; &lt;\/br&gt;&lt;\/br&gt;\n {% for Beta in form.AlphaBetas %}\n   {% for BetaField in Beta %}\n     {{ form_row(BetaField) }}\n   {% endfor %} \n       {% endfor %}\n {% endif %}\n\n&lt;div id=\"AlphaBeta-fields-list\"\n    data-prototype=\"{{ form_widget(form.AlphaBetas.vars.prototype)|e }}\"\n    data-widget-tags=\"{{ '&lt;p&gt;&lt;\/p&gt;' |e }}\"\n    data-widget-counter=\"{{ form.children|length }}\"&gt;\n{% for AlphaBetaField in form.AlphaBetas.vars.prototype.children %}\n{{ form_row(AlphaBetaField) }}\n{% endfor %}\n&lt;\/div&gt; \n\n&lt;button type=\"button\" id=\"add-another-collection-widget\" data-list-selector=\"#AlphaBeta-fields-list\"&gt;Insert Beta&lt;\/button&gt;\n&lt;\/br&gt;\n&lt;button class=\"btn\"&gt;{{ button_label|default('Save') }}&lt;\/button&gt;\n{{ form_end(form) }}\n<\/code><\/pre>\n<p>That&#8217;s all.<\/p>\n<p>Note: within the main form to edit an Alpha object, I would like to insert a delete buttons for each Beta associated object. As much as I can see, it is not possible, since it would mean to insert a html form within an html form. Since I may delete a AlphaBeta association by the corresponding AlphaBeta delete action, it is not a big deal. <\/p>\n<p>If you see how I can improve my code, you are welcome to advise me. <\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">1<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] It seems I did find a way, indeed it is pretty straightforward Synfony 4 code. Hope it could be useful to somebody. (note: I used php bin\/console make:entity\/crud\/form to write the needed scripts. Below how I needed to modify the code I got from make) So, say I have Alpha and Beta entities. I &#8230; <a title=\"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\" aria-label=\"More on [Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[580],"class_list":["post-11697","post","type-post","status-publish","format-standard","hentry","category-solved","tag-symfony"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] It seems I did find a way, indeed it is pretty straightforward Synfony 4 code. Hope it could be useful to somebody. (note: I used php bin\/console make:entity\/crud\/form to write the needed scripts. Below how I needed to modify the code I got from make) So, say I have Alpha and Beta entities. I ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-28T01:50:53+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?\",\"datePublished\":\"2022-09-28T01:50:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\"},\"wordCount\":306,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"symfony\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\",\"name\":\"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-09-28T01:50:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? - JassWeb","og_description":"[ad_1] It seems I did find a way, indeed it is pretty straightforward Synfony 4 code. Hope it could be useful to somebody. (note: I used php bin\/console make:entity\/crud\/form to write the needed scripts. Below how I needed to modify the code I got from make) So, say I have Alpha and Beta entities. I ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/","og_site_name":"JassWeb","article_published_time":"2022-09-28T01:50:53+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?","datePublished":"2022-09-28T01:50:53+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/"},"wordCount":306,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["symfony"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/","url":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/","name":"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I? - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-09-28T01:50:53+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-symfony-4-manytomany-association-with-attribute-custom-form-to-insert-attribute-value-how-do-i\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Symfony 4. ManyToMany association with attribute. Custom form to insert attribute value, how do I?"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/11697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=11697"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/11697\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=11697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=11697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=11697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}