Fixed serializer

Change-Id: I6a87cfd3b2ed16758809e7f3e4054683e7111f10
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2021-05-28 14:51:38 -03:00
parent 5b258a8eef
commit 8a0f7b5c48
1 changed files with 8 additions and 4 deletions

View File

@ -11,8 +11,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
use App\Models\Foundation\ExtraQuestions\ExtraQuestionAnswer;
use Doctrine\ORM\Mapping AS ORM;
use Doctrine\ORM\Mapping as ORM;
use models\utils\One2ManyPropertyTrait;
/**
@ -48,18 +49,21 @@ class PresentationExtraQuestionAnswer
$this->presentation = $presentation;
}
public function clearPresentation(){
public function clearPresentation()
{
$this->presentation = null;
}
use One2ManyPropertyTrait;
protected $getIdMappings = [
'getPresentationId' => 'presentation',
'getPresentationId' => 'presentation',
'getQuestionId' => 'question',
];
protected $hasPropertyMappings = [
'hasPresentation' => 'presentation',
'hasPresentation' => 'presentation',
'hasQuestion' => 'question',
];
}