/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aInvTypes) { $this->aInvTypes->removeDgmTypeAttributes($this); } if (null !== $this->aDgmAttributeTypes) { $this->aDgmAttributeTypes->removeDgmTypeAttributes($this); } $this->typeid = null; $this->attributeid = null; $this->valueint = null; $this->valuefloat = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \EVE\DgmAttributeTypes object * * @param \EVE\DgmAttributeTypes|ObjectCollection $dgmAttributeTypes The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildDgmTypeAttributesQuery The current query, for fluid interface */ public function filterByDgmAttributeTypes($dgmAttributeTypes, $comparison = null) { if ($dgmAttributeTypes instanceof \EVE\DgmAttributeTypes) { return $this->addUsingAlias(DgmTypeAttributesTableMap::COL_ATTRIBUTEID, $dgmAttributeTypes->getAttributeid(), $comparison); } elseif ($dgmAttributeTypes instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(DgmTypeAttributesTableMap::COL_ATTRIBUTEID, $dgmAttributeTypes->toKeyValue('PrimaryKey', 'Attributeid'), $comparison); } else { throw new PropelException('filterByDgmAttributeTypes() only accepts arguments of type \\EVE\\DgmAttributeTypes or Collection'); } }
/** * Exclude object from result * * @param ChildDgmAttributeTypes $dgmAttributeTypes Object to remove from the list of results * * @return $this|ChildDgmAttributeTypesQuery The current query, for fluid interface */ public function prune($dgmAttributeTypes = null) { if ($dgmAttributeTypes) { $this->addUsingAlias(DgmAttributeTypesTableMap::COL_ATTRIBUTEID, $dgmAttributeTypes->getAttributeid(), Criteria::NOT_EQUAL); } return $this; }