@@ -1505,23 +1505,68 @@ public function setLockField($lockField)
1505
1505
$ this ->lockField = $ lockField ;
1506
1506
}
1507
1507
1508
+ /**
1509
+ * A numerically indexed list of field names of this persistent class.
1510
+ *
1511
+ * This array includes identifier fields if present on this class.
1512
+ *
1513
+ * @return array
1514
+ */
1508
1515
public function getFieldNames ()
1509
1516
{
1510
- throw new \ BadMethodCallException ( __METHOD__ . ' () is not implemented yet. ' );
1517
+ return array_keys ( $ this -> fieldMappings );
1511
1518
}
1512
1519
1520
+ /**
1521
+ * A numerically indexed list of association names of this persistent class.
1522
+ *
1523
+ * This array includes identifier associations if present on this class.
1524
+ *
1525
+ * @return array
1526
+ */
1513
1527
public function getAssociationNames ()
1514
1528
{
1515
1529
throw new \BadMethodCallException (__METHOD__ .'() is not implemented yet. ' );
1516
1530
}
1517
1531
1532
+ /**
1533
+ * Gets the type of a field.
1534
+ *
1535
+ * @param string $fieldName
1536
+ * @return Doctrine\DBAL\Types\Type
1537
+ */
1518
1538
public function getTypeOfField ($ fieldName )
1519
1539
{
1520
- throw new \BadMethodCallException (__METHOD__ .'($fieldName) is not implemented yet. ' );
1540
+ return isset ($ this ->fieldMappings [$ fieldName ]) ?
1541
+ $ this ->fieldMappings [$ fieldName ]['type ' ] : null ;
1521
1542
}
1522
1543
1544
+ /**
1545
+ * Returns the target class name of the given association.
1546
+ *
1547
+ * @param string $assocName
1548
+ * @return string
1549
+ */
1523
1550
public function getAssociationTargetClass ($ assocName )
1524
1551
{
1525
1552
throw new \BadMethodCallException (__METHOD__ .'($assocName) is not implemented yet. ' );
1526
1553
}
1554
+
1555
+ /**
1556
+ * @param string $fieldName
1557
+ * @return bool
1558
+ */
1559
+ public function isAssociationInverseSide ($ fieldName )
1560
+ {
1561
+ throw new \BadMethodCallException (__METHOD__ .'() is not implemented yet. ' );
1562
+ }
1563
+
1564
+ /**
1565
+ * @param string $fieldName
1566
+ * @return string
1567
+ */
1568
+ public function getAssociationMappedByTargetField ($ fieldName )
1569
+ {
1570
+ throw new \BadMethodCallException (__METHOD__ .'() is not implemented yet. ' );
1571
+ }
1527
1572
}
0 commit comments