I have an Entity Article which contains:
/**
* @ORM\Column(type="array")
*/
private $data;
My data field can be in different shapes, either (x1 & x2) or (y1, y2 & y3) .. etc.
I created a FormType for each one of them but i'm confused on how i present those prototypes to the ArticleType for...
I'm using Doctrine Table inheritance and i want to build a table that contains all the children no matter what is their type since in that table i'm only using the common attributes like "ID and Name" everything is okay, but whenever i use FindAll i get the right array size but the object attribu...
I have a custom FormType
$form = $this->createFormBuilder($myClass)
->add('title', 'text')
->add('test',new TestType())
...
class TestType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
...
i'm working with Symfony and Doctrine, i have a function that will select rows based on specific criteria:
$entities = $repository->getSomeEntities();
now i want to render those entities in a choice list, i checked the entity FormType but it doesn't seems to work for me, for example:
$bu...
I'm trying to find the best practice on how to create this form, i have an entity and i want to create a form that will list all entities along with a checkbox for each and the user can select several entities using checkbox and apply an action to all the selected entities, something like this:
...
my parameters.yml file has:
parameters:
title:
subtitle: value
i want to pass the value to a service in config.yml
my_service:
class: the_class
arguments: [ %title.subtitle%] //didn't work
arguments: [ %title['subtitle']%] //didn't work
how can i do th...
I have this mapped property inside my product entity:
/**
* @ORM\ManyToMany(targetEntity="Group", mappedBy="products", indexBy="id", fetch="EAGER")
*
*/
protected $groups;
I wonder, my understanding for fetch="EAGER" is that it should get the groups once the product is selected, this is wha...
I have this mapped property inside my product entity:
/**
* @ORM\ManyToMany(targetEntity="Group", mappedBy="products", indexBy="id", fetch="EAGER")
*
*/
protected $groups;
I wonder, my understanding for fetch="EAGER" is that it should get the groups once the product is selected, this is wha...
I need help! i cant figure out how to build my database scheme, lets say i sell 2 things in my website Cars and Houses. they both share some attributes and they have their own attr. but they share 75% of attr. in orders table, wishlist is almost same for both