Skip to content

Instantly share code, notes, and snippets.

@ksiwonia
Created September 20, 2013 06:21
Show Gist options
  • Save ksiwonia/6633954 to your computer and use it in GitHub Desktop.
Save ksiwonia/6633954 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!--
***************************************************************************
Copyright (c) 2010 Qcadoo Limited
Project: Qcadoo Framework
Version: 1.2.1
This file is part of Qcadoo.
Qcadoo is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
***************************************************************************
-->
<model name="extrusionContext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schema.qcadoo.org/model"
xsi:schemaLocation="http://schema.qcadoo.org/model http://schema.qcadoo.org/model.xsd">
<fields>
<date name="day" required="true"/>
<boolean name="generated" default="false" />
<boolean name="confirmed" default="false" />
<dictionary name="place" dictionary="productionLinePlaces" required="false" />
<belongsTo name="productionLine" plugin="productionLines"
model="productionLine" required="true" />
<belongsTo name="shift" model="shift" plugin="basic" required="true" />
<belongsTo name="operator" model="user" plugin="qcadooSecurity"/>
<hasMany name="genetatedExtrusionProtocols" model="extrusionProtocol" joinField="extrusionContext" />
<hasMany name="orders" model="order"
joinField="extrusionContext" plugin="orders" persistent="false" />
</fields>
<hooks>
</hooks>
<identifier expression="#day" />
</model>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment