<commit_before><?php

namespace AppBundle\Entity;

use JMS\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="AppBundle\Repository\StoreTeamRepository")
 * @ORM\Table(name="fs_betrieb_team")
 */
class StoreTeam
{
    const STATUS_REQUESTED = 0;
    const STATUS_TEAM = 1;
    /* The queue (Warteliste, Springerliste) is very unclear as well as in code and in what people do with it.
       Better try not to use it. People in it have a limited view on the store in legacy page. */
    const STATUS_QUEUE = 2;
    /**
     * @Groups({"storeDetail"})
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="User", fetch="LAZY")
     * @ORM\JoinColumn(name="foodsaver_id", referencedColumnName="id", nullable=false)
     */
    private $user;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Store", inversedBy="team", fetch="LAZY")
     * @ORM\JoinColumn(name="betrieb_id", referencedColumnName="id", nullable=false)
     */
    private $store;<commit_msg>Use EAGER loading of store team user<commit_after><?php

namespace AppBundle\Entity;

use JMS\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="AppBundle\Repository\StoreTeamRepository")
 * @ORM\Table(name="fs_betrieb_team")
 */
class StoreTeam
{
    const STATUS_REQUESTED = 0;
    const STATUS_TEAM = 1;
    /* The queue (Warteliste, Springerliste) is very unclear as well as in code and in what people do with it.
       Better try not to use it. People in it have a limited view on the store in legacy page. */
    const STATUS_QUEUE = 2;
    /**
     * @Groups({"storeDetail"})
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="User", fetch="EAGER")
     * @ORM\JoinColumn(name="foodsaver_id", referencedColumnName="id", nullable=false)
     */
    private $user;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Store", inversedBy="team", fetch="LAZY")
     * @ORM\JoinColumn(name="betrieb_id", referencedColumnName="id", nullable=false)
     */
    private $store;
{'fraction_non_alphanumeric': 0.13516160626836435, 'fraction_numerical': 0.002938295788442703, 'mean_word_length': 3.65375854214123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6419444', 'n_tokens_mistral': 681, 'n_tokens_neox': 665, 'n_words': 161}